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

Issue 1527653004: Move browsing data counters helper functions to an 'utils' file. (Closed)

Created:
5 years ago by msramek
Modified:
4 years, 11 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

Move browsing data counters helper functions to an 'utils' file. This cleans up the code a bit and makes it easier to share this functionality between the Desktop and Android implementation. Currently, the 'utils' file contains: - the method to check if the experiment is on; since the next step is to introduce the experiment on Android, the function now has two defaults: true on Desktop and false on Android - counter text output; it's necessary to compute this in C++, since on Android side we don't have good ICU string support - pref->counter factory; this is currently only to be used on Android (https://codereview.chromium.org/1530123002/) BUG=569870 Committed: https://crrev.com/f686e096aa1518fecc9e538618fde61f506e03bb Cr-Commit-Position: refs/heads/master@{#367564}

Patch Set 1 #

Patch Set 2 : Default flag value. #

Total comments: 6

Patch Set 3 : Removed namespace, other fixes. #

Patch Set 4 : Rebase, solved conflict in #includes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+214 lines, -228 lines) Patch
A chrome/browser/browsing_data/browsing_data_counter_utils.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 2 1 chunk +185 lines, -0 lines 0 comments Download
A + chrome/browser/browsing_data/browsing_data_counter_utils_unittest.cc View 1 2 3 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 6 chunks +1 line, -151 lines 0 comments Download
D chrome/browser/ui/webui/options/clear_browser_data_handler_unittest.cc View 1 chunk +0 lines, -64 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (9 generated)
msramek
Hi Bernhard, can you please have a look at this? Thanks, Martin
5 years ago (2015-12-16 13:19:15 UTC) #4
Bernhard Bauer
https://codereview.chromium.org/1527653004/diff/20001/chrome/browser/browsing_data/browsing_data_counter_utils.h File chrome/browser/browsing_data/browsing_data_counter_utils.h (right): https://codereview.chromium.org/1527653004/diff/20001/chrome/browser/browsing_data/browsing_data_counter_utils.h#newcode10 chrome/browser/browsing_data/browsing_data_counter_utils.h:10: namespace browsing_data { I think the general guideline now ...
5 years ago (2015-12-16 13:35:32 UTC) #5
msramek
https://codereview.chromium.org/1527653004/diff/20001/chrome/browser/browsing_data/browsing_data_counter_utils.h File chrome/browser/browsing_data/browsing_data_counter_utils.h (right): https://codereview.chromium.org/1527653004/diff/20001/chrome/browser/browsing_data/browsing_data_counter_utils.h#newcode10 chrome/browser/browsing_data/browsing_data_counter_utils.h:10: namespace browsing_data { On 2015/12/16 13:35:32, Bernhard Bauer wrote: ...
4 years, 11 months ago (2016-01-05 16:22:50 UTC) #6
Bernhard Bauer
lgtm
4 years, 11 months ago (2016-01-05 16:33:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1527653004/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1527653004/100001
4 years, 11 months ago (2016-01-05 17:17:53 UTC) #12
commit-bot: I haz the power
Committed patchset #4 (id:100001)
4 years, 11 months ago (2016-01-05 17:49:05 UTC) #14
commit-bot: I haz the power
4 years, 11 months ago (2016-01-05 17:50:10 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f686e096aa1518fecc9e538618fde61f506e03bb
Cr-Commit-Position: refs/heads/master@{#367564}

Powered by Google App Engine
This is Rietveld 408576698