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

Issue 2585633003: Restart counters when the MD CBD dialog is reopened. (Closed)

Created:
4 years ago by msramek
Modified:
3 years, 11 months ago
Reviewers:
tommycli
CC:
chromium-reviews, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restart counters when the MD CBD dialog is reopened. We call Restart() on all counters in HandleInitialize(), which is called every time the dialog is (re)opened. Note that counters are added to ClearBrowsingDataHandler in OnJavascriptAllowed() and removed in OnJavascriptDisallowed(), so we know that if counters exist, JavaScript is allowed. BUG=674040 Review-Url: https://codereview.chromium.org/2585633003 Cr-Commit-Position: refs/heads/master@{#442344} Committed: https://chromium.googlesource.com/chromium/src/+/0eb377ef00cb7afd8392ff44f6ab94b7848b359f

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase. #

Patch Set 3 : Remove the duplicate Restart() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 2 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 16 (9 generated)
msramek
Hi Tommy, Please have a look! Thanks, Martin
4 years ago (2016-12-16 14:37:50 UTC) #3
tommycli
https://codereview.chromium.org/2585633003/diff/1/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc File chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc (right): https://codereview.chromium.org/2585633003/diff/1/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc#newcode277 chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc:277: counter->Restart(); how much performance penalty is it to create ...
4 years ago (2016-12-16 17:39:14 UTC) #4
msramek
Sorry for the long delay, I was OOO over the holidays. I addressed your comment. ...
3 years, 11 months ago (2017-01-03 13:56:39 UTC) #7
tommycli
lgtm
3 years, 11 months ago (2017-01-09 18:18:25 UTC) #10
msramek
Thanks!
3 years, 11 months ago (2017-01-09 20:11:47 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2585633003/40001
3 years, 11 months ago (2017-01-09 20:12:26 UTC) #13
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 21:09:57 UTC) #16
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/0eb377ef00cb7afd8392ff44f6ab...

Powered by Google App Engine
This is Rietveld 408576698