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

Issue 1415223002: Add counts of User data to ProfileInfoCache (Closed)

Created:
5 years, 2 months ago by lwchkg
Modified:
5 years, 1 month ago
Reviewers:
Mike Lerman, anthonyvd
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added functions for storing browsing statistics in ProfileInfoCache. Also a few minor fixes reported by cpplint. BUG=502346 Committed: https://crrev.com/e9be770cd1340b3a9668095d0785cc096a725bd5 Cr-Commit-Position: refs/heads/master@{#360576}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Added unit test, fixed a bug, and a few minor edits #

Total comments: 6

Patch Set 3 : Respond to comments #

Patch Set 4 : Changed statistics keys from UpperCase to lower_case #

Patch Set 5 : Removed statistics accessors of base::DictionaryValue type #

Patch Set 6 : Change GetStatistic from int(...) back to bool(..., int*) #

Total comments: 5

Patch Set 7 : Rewritten according to Mike's comment #

Patch Set 8 : Fix: removed declarations and includes that should not be there #

Patch Set 9 : Added methods in profile_statistics.cc to access ProfileInfoCache, fixed a few style errors #

Total comments: 15

Patch Set 10 : Respond to comments. #

Patch Set 11 : Bug fix and refactoring utility methods in profilestatistics.* #

Patch Set 12 : Bug fix. Removed a non-trivial style fix (will upload in another CL). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+380 lines, -8 lines) Patch
M chrome/browser/profiles/profile_attributes_entry.h View 1 2 3 4 5 6 7 8 9 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_attributes_entry.cc View 1 2 3 4 5 6 2 chunks +57 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_attributes_storage_unittest.cc View 1 2 3 4 5 6 7 8 10 11 5 chunks +36 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 3 chunks +89 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_statistics.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +13 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_statistics.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +65 lines, -1 line 0 comments Download
A chrome/browser/profiles/profile_statistics_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +87 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 53 (22 generated)
lwchkg
Dear Anthony, Please have a look and comment. Anyway, I'll add the tests soon (hopefully ...
5 years, 2 months ago (2015-10-21 20:08:31 UTC) #3
lwchkg
Dear Anthony, Unit tests are added in the second patch. Please have a look. Regards, ...
5 years, 2 months ago (2015-10-23 15:16:36 UTC) #6
anthonyvd
Great work, thanks a lot :) only a few comments! I'm not the biggest fan ...
5 years, 2 months ago (2015-10-23 15:53:14 UTC) #8
Mike Lerman
I'm not convinced this information belongs in the ProfileInfoCache. This cache is mainly used to ...
5 years, 2 months ago (2015-10-23 16:04:19 UTC) #9
lwchkg
Here's my reply. https://codereview.chromium.org/1415223002/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1415223002/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode63 chrome/browser/profiles/profile_info_cache.cc:63: const char kStatistics[] = "statistics"; On ...
5 years, 2 months ago (2015-10-24 02:02:32 UTC) #10
anthonyvd
On 2015/10/23 16:04:19, Mike Lerman wrote: > I'm not convinced this information belongs in the ...
5 years, 1 month ago (2015-10-26 20:15:54 UTC) #11
lwchkg
New patch uploaded to address comments. PTAL. On 2015/10/26 20:15:54, anthonyvd wrote: > I don't ...
5 years, 1 month ago (2015-10-28 13:49:50 UTC) #13
Mike Lerman
On 2015/10/28 13:49:50, lwchkg wrote: > New patch uploaded to address comments. PTAL. > > ...
5 years, 1 month ago (2015-10-29 17:23:14 UTC) #14
anthonyvd
On 2015/10/29 17:23:14, Mike Lerman wrote: > On 2015/10/28 13:49:50, lwchkg wrote: > > New ...
5 years, 1 month ago (2015-10-30 16:03:46 UTC) #15
lwchkg
> > I suggest the split for a couple of reasons, none big, and I'm ...
5 years, 1 month ago (2015-10-30 17:44:17 UTC) #16
Mike Lerman
On 2015/10/30 17:44:17, lwchkg wrote: > > > I suggest the split for a couple ...
5 years, 1 month ago (2015-11-03 20:30:19 UTC) #17
lwchkg
> > Disagree that it needs additional parsing. Everything in Local State are > stored ...
5 years, 1 month ago (2015-11-05 14:11:36 UTC) #18
anthonyvd
On 2015/11/05 14:11:36, lwchkg wrote: > > > Disagree that it needs additional parsing. Everything ...
5 years, 1 month ago (2015-11-05 14:58:16 UTC) #19
lwchkg
On 2015/11/05 14:58:16, anthonyvd wrote: > > There's a concern returning ints in the statistics: ...
5 years, 1 month ago (2015-11-06 00:19:53 UTC) #20
lwchkg
Patch set #5 and #6 uploaded. Please see which one do you prefer. (Check the ...
5 years, 1 month ago (2015-11-07 01:13:28 UTC) #23
Mike Lerman
https://codereview.chromium.org/1415223002/diff/190001/chrome/browser/profiles/profile_attributes_entry.h File chrome/browser/profiles/profile_attributes_entry.h (right): https://codereview.chromium.org/1415223002/diff/190001/chrome/browser/profiles/profile_attributes_entry.h#newcode88 chrome/browser/profiles/profile_attributes_entry.h:88: // the statistic of the |category| exists. Returns true ...
5 years, 1 month ago (2015-11-10 15:31:18 UTC) #24
lwchkg
Mike: Thanks for you comment! I'll make another patch ASAP (it's 3am now, so I ...
5 years, 1 month ago (2015-11-10 19:16:42 UTC) #25
lwchkg
Another patch uploaded. This time the statistics are written as individual functions.
5 years, 1 month ago (2015-11-11 17:48:15 UTC) #26
lwchkg
Another patch uploaded to add utility methods in profile_statistics.cc. Also followed the output of cpplint. ...
5 years, 1 month ago (2015-11-15 19:40:06 UTC) #29
Mike Lerman
I think this looks great! Very very good. Just a few minor comment-related nits. Anthony, ...
5 years, 1 month ago (2015-11-17 16:29:51 UTC) #30
anthonyvd
Just a single nit. Other than that and Mike's comments, lgtm. Thanks a lot for ...
5 years, 1 month ago (2015-11-17 19:03:30 UTC) #31
lwchkg
Thank you for all your comments. Now they're fixed. https://codereview.chromium.org/1415223002/diff/290001/chrome/browser/profiles/profile_attributes_entry.h File chrome/browser/profiles/profile_attributes_entry.h (right): https://codereview.chromium.org/1415223002/diff/290001/chrome/browser/profiles/profile_attributes_entry.h#newcode8 chrome/browser/profiles/profile_attributes_entry.h:8: ...
5 years, 1 month ago (2015-11-18 17:34:53 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415223002/310001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415223002/310001
5 years, 1 month ago (2015-11-18 17:36:44 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_dbg/builds/142306) android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, ...
5 years, 1 month ago (2015-11-18 17:56:33 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415223002/330001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415223002/330001
5 years, 1 month ago (2015-11-18 19:38:34 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/124908) mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, ...
5 years, 1 month ago (2015-11-18 19:50:28 UTC) #43
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415223002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415223002/370001
5 years, 1 month ago (2015-11-19 12:36:56 UTC) #46
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years, 1 month ago (2015-11-19 13:55:37 UTC) #48
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1415223002/370001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1415223002/370001
5 years, 1 month ago (2015-11-19 14:14:08 UTC) #51
commit-bot: I haz the power
Committed patchset #12 (id:370001)
5 years, 1 month ago (2015-11-19 14:17:56 UTC) #52
commit-bot: I haz the power
5 years, 1 month ago (2015-11-19 14:18:50 UTC) #53
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/e9be770cd1340b3a9668095d0785cc096a725bd5
Cr-Commit-Position: refs/heads/master@{#360576}

Powered by Google App Engine
This is Rietveld 408576698