DescriptionMove 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 #Dependent Patchsets: Messages
Total messages: 16 (9 generated)
|