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

Issue 1404793007: Restart the browsing data counters when the CBD dialog is opened. (Closed)

Created:
5 years, 2 months ago by msramek
Modified:
5 years, 2 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, dbeam+watch-options_chromium.org, michaelpg+watch-options_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Restart the browsing data counters when the CBD dialog is opened. This is a followup to https://codereview.chromium.org/1342093003/. In that CL, we restarted the dialog on the OptionsPageUIHandler::InitializePage event, which means that the counters were restarted even if the dialog was reloaded (which doesn't trigger OptionsPageUIHandler::InitializeHandler()). It turns out that this is not sufficient. The correct event to listen to is the Page.didShowPage in JavaScript. This is called whenever the dialog is opened, regardless of whether it happened by clicking a button, navigating directly to the page, or reloading the page. BUG=510028 Committed: https://crrev.com/07a99474b6dd0c06b0abbf56645e24182358772c Cr-Commit-Position: refs/heads/master@{#354266}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added a comment about parameters. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -4 lines) Patch
M chrome/browser/resources/options/clear_browser_data_overlay.js View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.h View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 3 chunks +10 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
msramek
Hi Bernhard, can you have a look? Thanks, Martin
5 years, 2 months ago (2015-10-15 11:24:04 UTC) #2
Bernhard Bauer
lgtm https://codereview.chromium.org/1404793007/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.h File chrome/browser/ui/webui/options/clear_browser_data_handler.h (right): https://codereview.chromium.org/1404793007/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.h#newcode37 chrome/browser/ui/webui/options/clear_browser_data_handler.h:37: void OnPageOpened(const base::ListValue* value); Add a comment about ...
5 years, 2 months ago (2015-10-15 11:30:28 UTC) #3
msramek
https://codereview.chromium.org/1404793007/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.h File chrome/browser/ui/webui/options/clear_browser_data_handler.h (right): https://codereview.chromium.org/1404793007/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.h#newcode37 chrome/browser/ui/webui/options/clear_browser_data_handler.h:37: void OnPageOpened(const base::ListValue* value); On 2015/10/15 11:30:28, Bernhard Bauer ...
5 years, 2 months ago (2015-10-15 13:54:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1404793007/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1404793007/20001
5 years, 2 months ago (2015-10-15 13:54:20 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 2 months ago (2015-10-15 14:58:17 UTC) #8
commit-bot: I haz the power
5 years, 2 months ago (2015-10-15 14:59:16 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/07a99474b6dd0c06b0abbf56645e24182358772c
Cr-Commit-Position: refs/heads/master@{#354266}

Powered by Google App Engine
This is Rietveld 408576698