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

Issue 1342093003: Decouple the browsing data counters initialization and start. (Closed)

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

Description

Decouple the browsing data counters initialization and start. Previously, the counters started counting immediately after the initialization, which is called during the initialization of ClearBrowserDataHandler, and that happens immediately when chrome://settings is opened. On the other hand, there was no trigger when the ClearBrowserDataHandler page was initialized, i.e. when chrome://settings/clearBrowserData opened. This had two adverse effects: - Counters started counting too soon (which is unnecessary as the user might have opened chrome://settings for any other reason) - Reloading chrome://settings/clearBrowserData did not trigger counter restart BUG=510028 Committed: https://crrev.com/204447a50be0272d8ed740fe25aef3c9f066a75b Cr-Commit-Position: refs/heads/master@{#349112}

Patch Set 1 #

Total comments: 2

Patch Set 2 : DCHECK instead of if() #

Patch Set 3 : Added Restart() to tests as well. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -10 lines) Patch
M chrome/browser/browsing_data/browsing_data_counter.h View 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/browser/browsing_data/passwords_counter.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/browsing_data/passwords_counter_browsertest.cc View 1 2 4 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (8 generated)
msramek
Hi Bernhard, could you please have a look at this? I'm working on data volume ...
5 years, 3 months ago (2015-09-15 13:21:11 UTC) #2
Bernhard Bauer
LGTM with a suggestion: https://codereview.chromium.org/1342093003/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.cc File chrome/browser/ui/webui/options/clear_browser_data_handler.cc (right): https://codereview.chromium.org/1342093003/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.cc#newcode83 chrome/browser/ui/webui/options/clear_browser_data_handler.cc:83: if (AreCountersEnabled()) { This check ...
5 years, 3 months ago (2015-09-15 15:04:58 UTC) #3
msramek
https://codereview.chromium.org/1342093003/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.cc File chrome/browser/ui/webui/options/clear_browser_data_handler.cc (right): https://codereview.chromium.org/1342093003/diff/1/chrome/browser/ui/webui/options/clear_browser_data_handler.cc#newcode83 chrome/browser/ui/webui/options/clear_browser_data_handler.cc:83: if (AreCountersEnabled()) { On 2015/09/15 15:04:58, Bernhard Bauer wrote: ...
5 years, 3 months ago (2015-09-15 16:55:43 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342093003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342093003/20001
5 years, 3 months ago (2015-09-15 16:56:27 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/103296) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 3 months ago (2015-09-15 17:34:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342093003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342093003/40001
5 years, 3 months ago (2015-09-16 11:40:38 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/107883)
5 years, 3 months ago (2015-09-16 13:07:33 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1342093003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1342093003/40001
5 years, 3 months ago (2015-09-16 13:15:39 UTC) #16
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 3 months ago (2015-09-16 13:42:39 UTC) #17
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/204447a50be0272d8ed740fe25aef3c9f066a75b Cr-Commit-Position: refs/heads/master@{#349112}
5 years, 3 months ago (2015-09-16 13:43:26 UTC) #18
commit-bot: I haz the power
5 years, 3 months ago (2015-09-23 12:55:10 UTC) #19
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/204447a50be0272d8ed740fe25aef3c9f066a75b
Cr-Commit-Position: refs/heads/master@{#349112}

Powered by Google App Engine
This is Rietveld 408576698