Apply the pref that prohibits deleting browsing and download history.
commit6370238ee10fc1835955b22cf31ef6916539e439
authorpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 26 Apr 2013 07:40:52 +0000 (26 07:40 +0000)
committerpam@chromium.org <pam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Fri, 26 Apr 2013 07:40:52 +0000 (26 07:40 +0000)
treec0cf6b24b9a2d054a381d82436d459acaa8eb859
parent7611ca1b2d08655a065fdd470730cbcedc2134df
Apply the pref that prohibits deleting browsing and download history.

When kDeletingBrowserHistoryEnabled is false, the UI elements to delete history items will be disabled, and the back-end calls will likewise be skipped (in case someone works around the UI, e.g. via the JavaScript console).

BUG=230401
TEST=browser_tests --gtest_filter=HistoryWebUIDeleteProhibitedTest.*

Review URL: https://chromiumcodereview.appspot.com/14046016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196655 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/resources/history/history.js
chrome/browser/ui/webui/history_ui.cc
chrome/browser/ui/webui/history_ui.h
chrome/chrome_tests.gypi
chrome/test/data/webui/history_browsertest.js
chrome/test/data/webui/history_ui_browsertest.cc [new file with mode: 0644]
chrome/test/data/webui/history_ui_browsertest.h [new file with mode: 0644]