Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1597)

Issue 14046016: History UI: Apply the pref that prohibits deleting browsing and download history. (Closed)

Created:
7 years, 8 months ago by Pam (message me for reviews)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, pam+watch_chromium.org, arv+watch_chromium.org
Visibility:
Public.

Description

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.* Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=196655

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : Added test files #

Patch Set 5 : Remove executable flag #

Total comments: 10

Patch Set 6 : Review changes #

Patch Set 7 : #

Patch Set 8 : More better #

Total comments: 2

Patch Set 9 : #

Patch Set 10 : Fixed .gypi #

Unified diffs Side-by-side diffs Delta from patch set Stats (+176 lines, -32 lines) Patch
M chrome/browser/resources/history/history.js View 1 2 3 4 5 6 7 8 7 chunks +52 lines, -23 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/history_ui.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/test/data/webui/history_browsertest.js View 1 2 3 4 5 6 7 8 6 chunks +69 lines, -3 lines 0 comments Download
A chrome/test/data/webui/history_ui_browsertest.h View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A chrome/test/data/webui/history_ui_browsertest.cc View 1 2 3 4 5 1 chunk +21 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Pam (message me for reviews)
James: ui/webui/history_ui.* Pat: history.js, the tests, and the gypi Thanks! - Pam
7 years, 8 months ago (2013-04-18 13:50:38 UTC) #1
Patrick Dubroy
https://codereview.chromium.org/14046016/diff/12003/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/14046016/diff/12003/chrome/browser/ui/webui/history_ui.cc#newcode563 chrome/browser/ui/webui/history_ui.cc:563: if (!profile->GetPrefs()->GetBoolean(prefs::kAllowDeletingBrowserHistory)) { Maybe just OR this onto the ...
7 years, 8 months ago (2013-04-18 14:15:19 UTC) #2
Pam (message me for reviews)
https://codereview.chromium.org/14046016/diff/12003/chrome/browser/ui/webui/history_ui.cc File chrome/browser/ui/webui/history_ui.cc (right): https://codereview.chromium.org/14046016/diff/12003/chrome/browser/ui/webui/history_ui.cc#newcode563 chrome/browser/ui/webui/history_ui.cc:563: if (!profile->GetPrefs()->GetBoolean(prefs::kAllowDeletingBrowserHistory)) { On 2013/04/18 14:15:19, dubroy wrote: > ...
7 years, 8 months ago (2013-04-18 14:41:44 UTC) #3
Patrick Dubroy
https://codereview.chromium.org/14046016/diff/12003/chrome/test/data/webui/history_browsertest.js File chrome/test/data/webui/history_browsertest.js (right): https://codereview.chromium.org/14046016/diff/12003/chrome/test/data/webui/history_browsertest.js#newcode777 chrome/test/data/webui/history_browsertest.js:777: testDone(); On 2013/04/18 14:41:44, Pam wrote: > On 2013/04/18 ...
7 years, 8 months ago (2013-04-18 14:55:53 UTC) #4
Pam (message me for reviews)
Ready for another look, thanks.
7 years, 8 months ago (2013-04-18 19:08:38 UTC) #5
Patrick Dubroy
On 2013/04/18 19:08:38, Pam wrote: > Ready for another look, thanks. lgtm
7 years, 8 months ago (2013-04-19 11:00:35 UTC) #6
Pam (message me for reviews)
James, could you please give owners approval for the webui/ files?
7 years, 8 months ago (2013-04-22 07:34:32 UTC) #7
Pam (message me for reviews)
On 2013/04/22 07:34:32, Pam wrote: > James, could you please give owners approval for the ...
7 years, 8 months ago (2013-04-23 12:30:45 UTC) #8
Pam (message me for reviews)
Hi Evan, could you please give owners approval for the webui/ files? - Pam
7 years, 8 months ago (2013-04-24 10:44:04 UTC) #9
James Hawkins
https://codereview.chromium.org/14046016/diff/36001/chrome/browser/resources/history/history.js File chrome/browser/resources/history/history.js (right): https://codereview.chromium.org/14046016/diff/36001/chrome/browser/resources/history/history.js#newcode131 chrome/browser/resources/history/history.js:131: if (this.model_.createEditingCheckboxes) { Should this param be less imperative ...
7 years, 8 months ago (2013-04-24 21:12:20 UTC) #10
Pam (message me for reviews)
Thanks -- please take another look. - Pam https://codereview.chromium.org/14046016/diff/36001/chrome/browser/resources/history/history.js File chrome/browser/resources/history/history.js (right): https://codereview.chromium.org/14046016/diff/36001/chrome/browser/resources/history/history.js#newcode131 chrome/browser/resources/history/history.js:131: if ...
7 years, 8 months ago (2013-04-25 07:53:24 UTC) #11
James Hawkins
lgtm
7 years, 8 months ago (2013-04-25 17:14:59 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/14046016/9010
7 years, 8 months ago (2013-04-25 19:04:02 UTC) #13
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) content_browsertests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=139733
7 years, 8 months ago (2013-04-25 20:54:23 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pam@chromium.org/14046016/9010
7 years, 8 months ago (2013-04-26 06:32:26 UTC) #15
commit-bot: I haz the power
7 years, 8 months ago (2013-04-26 07:40:53 UTC) #16
Message was sent while issue was closed.
Change committed as 196655

Powered by Google App Engine
This is Rietveld 408576698