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

Issue 2121203002: Add BrowsingDataCounterFactory (Closed)

Created:
4 years, 5 months ago by ioanap
Modified:
4 years, 5 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, msramek+watch_chromium.org, michaelpg+watch-options_chromium.org, michaelpg+watch-md-settings_chromium.org, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, markusheintz_
Base URL:
https://chromium.googlesource.com/chromium/src.git@move_bd_counters_to_components
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add BrowsingDataCounterFactory Add a factory to facilitate the creation of browsing data counters for when they will be fully componentized. BUG=620317 Committed: https://crrev.com/c6d9534492f46738b63b7d8500cd411bd723aa80 Cr-Commit-Position: refs/heads/master@{#404648}

Patch Set 1 #

Patch Set 2 : Added MediaLicensesCounter to the factory #

Patch Set 3 : Fixed typo in Android code #

Patch Set 4 : Fixed Android code and rebase #

Total comments: 14

Patch Set 5 : Addressed comments #

Patch Set 6 : Fixed includes #

Patch Set 7 : Fixed Android code #

Total comments: 2

Patch Set 8 : Moved TODO #

Total comments: 4

Patch Set 9 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -51 lines) Patch
M chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/browsing_data/browsing_data_counter_factory.h View 1 2 3 4 5 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_counter_factory.cc View 1 2 3 4 5 6 7 8 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 2 3 4 1 chunk +0 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 3 chunks +13 lines, -10 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -16 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 45 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2121203002/20001
4 years, 5 months ago (2016-07-05 14:52:46 UTC) #3
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/91453)
4 years, 5 months ago (2016-07-05 15:08:24 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2121203002/60001
4 years, 5 months ago (2016-07-07 10:02:03 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-07-07 11:10:11 UTC) #9
ioanap
Please have a look! Thanks, Ioana
4 years, 5 months ago (2016-07-07 11:26:54 UTC) #11
msramek
https://codereview.chromium.org/2121203002/diff/60001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc File chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc (left): https://codereview.chromium.org/2121203002/diff/60001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc#oldcode29 chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc:29: counter_.reset(CreateCounterForPreference(pref, profile)); Why don't we remove this method? https://codereview.chromium.org/2121203002/diff/60001/chrome/browser/browsing_data/browsing_data_counter_factory.cc ...
4 years, 5 months ago (2016-07-07 11:55:33 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2121203002/80001
4 years, 5 months ago (2016-07-07 14:05:37 UTC) #14
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/49103)
4 years, 5 months ago (2016-07-07 14:22:30 UTC) #16
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2121203002/100001
4 years, 5 months ago (2016-07-07 15:02:40 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/99968)
4 years, 5 months ago (2016-07-07 15:21:36 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2121203002/140001
4 years, 5 months ago (2016-07-07 16:28:43 UTC) #23
ioanap
Addressed comments. Thank you, Ioana https://codereview.chromium.org/2121203002/diff/60001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc File chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc (left): https://codereview.chromium.org/2121203002/diff/60001/chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc#oldcode29 chrome/browser/android/browsing_data/browsing_data_counter_bridge.cc:29: counter_.reset(CreateCounterForPreference(pref, profile)); On 2016/07/07 ...
4 years, 5 months ago (2016-07-07 16:30:48 UTC) #24
msramek
LGTM! https://codereview.chromium.org/2121203002/diff/140001/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/2121203002/diff/140001/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc#newcode222 chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc:222: // TODO(msramek): Get the list of deletion preferences ...
4 years, 5 months ago (2016-07-07 16:49:06 UTC) #25
ioanap
dbeam@chromium.org: Please review changes in chrome/browser/ui/webui/ Thanks, Ioana
4 years, 5 months ago (2016-07-07 17:18:13 UTC) #27
ioanap
@dbeam: friendly ping! :) Please review the changes in: chrome/browser/ui/webui/ Thank you, Ioana https://codereview.chromium.org/2121203002/diff/140001/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc File ...
4 years, 5 months ago (2016-07-08 15:32:43 UTC) #28
Dan Beam
lgtm
4 years, 5 months ago (2016-07-08 21:34:47 UTC) #29
ioanap
Thank you, Dan! Bernhard, please take a look at browsing_data_counter_bridge.cc. Thank you, Ioana
4 years, 5 months ago (2016-07-11 08:06:07 UTC) #31
Bernhard Bauer
lgtm https://codereview.chromium.org/2121203002/diff/160001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (right): https://codereview.chromium.org/2121203002/diff/160001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#newcode29 chrome/browser/browsing_data/browsing_data_counter_factory.cc:29: if (pref_name == prefs::kDeleteBrowsingHistory) These need braces, as ...
4 years, 5 months ago (2016-07-11 10:57:02 UTC) #32
ioanap
Thank you for reviewing this! Ioana https://codereview.chromium.org/2121203002/diff/160001/chrome/browser/browsing_data/browsing_data_counter_factory.cc File chrome/browser/browsing_data/browsing_data_counter_factory.cc (right): https://codereview.chromium.org/2121203002/diff/160001/chrome/browser/browsing_data/browsing_data_counter_factory.cc#newcode29 chrome/browser/browsing_data/browsing_data_counter_factory.cc:29: if (pref_name == ...
4 years, 5 months ago (2016-07-11 13:34:15 UTC) #35
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/2121203002/180001
4 years, 5 months ago (2016-07-11 13:37:30 UTC) #40
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 5 months ago (2016-07-11 13:41:29 UTC) #42
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-11 13:41:37 UTC) #43
commit-bot: I haz the power
4 years, 5 months ago (2016-07-11 13:43:21 UTC) #45
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/c6d9534492f46738b63b7d8500cd411bd723aa80
Cr-Commit-Position: refs/heads/master@{#404648}

Powered by Google App Engine
This is Rietveld 408576698