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

Issue 1214483002: Improve the ProfileInfoCache API. (Closed)

Created:
5 years, 6 months ago by anthonyvd
Modified:
5 years, 5 months ago
CC:
chromium-reviews, Roger Tawa OOO till Jul 10th
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Improve the ProfileInfoCache API. This change introduces a new API to the ProfileInfoCache and implements it in terms of the current ProfileInfoCache, along with unit tests. This is the first step in addressing the API issues the ProfileInfoCache exhibits, with upcoming follow up CLs replacing the current uses with this new interface and ultimately improving the implementation as well. A document detailing the design and discussion around this effort can be found here: https://docs.google.com/a/google.com/document/d/12V8ahA9lEsXWyT8OqasEz3HR4J5jK9hwbRTeU0hUm6Y/edit?usp=sharing BUG=305720 Committed: https://crrev.com/b50a7cbab0df3cc66f1881dcb08e4cef18f96835 Cr-Commit-Position: refs/heads/master@{#338513}

Patch Set 1 #

Total comments: 41

Patch Set 2 : Rebase #

Patch Set 3 : Address review feedback #

Total comments: 19

Patch Set 4 : Rebase #

Patch Set 5 : Address feedback and slightly change the interface. #

Total comments: 19

Patch Set 6 : Address feedback. #

Patch Set 7 : Comments and deprecation #

Patch Set 8 : Rebase #

Patch Set 9 : Tentative trybot build fix. #

Patch Set 10 : Replace std::map. #

Patch Set 11 : Fix use of base::StringPrintf in unit test. #

Patch Set 12 : Add TestBrowserThreadBundle to unit tests #

Patch Set 13 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+829 lines, -0 lines) Patch
A chrome/browser/profiles/profile_attributes_entry.h View 1 2 3 4 5 6 9 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_attributes_entry.cc View 1 2 3 4 5 1 chunk +219 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_attributes_storage.h View 1 2 3 4 5 1 chunk +48 lines, -0 lines 0 comments Download
A chrome/browser/profiles/profile_attributes_storage_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +356 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 7 8 9 5 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 2 chunks +49 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_info_interface.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 15 (3 generated)
anthonyvd
Hi Monica and Michael, Welcome to ProfileInfoCache refactor, the Third! Can you guys please take ...
5 years, 6 months ago (2015-06-25 21:38:37 UTC) #2
noms (inactive)
Wooohoo! This is looking great. I left some initial comments (and hopefully none of them ...
5 years, 5 months ago (2015-06-29 17:10:40 UTC) #3
Mike Lerman
I am excited about this! https://codereview.chromium.org/1214483002/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1214483002/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode1242 chrome/browser/profiles/profile_info_cache.cc:1242: // ProfileMetadataStorage implementation On ...
5 years, 5 months ago (2015-06-29 19:14:38 UTC) #4
anthonyvd
Thanks a ton to both of you for your feedback! I think the latest patchset ...
5 years, 5 months ago (2015-06-30 21:24:53 UTC) #5
Mike Lerman
Thanks for those changes! Some more thoughts :) https://codereview.chromium.org/1214483002/diff/1/chrome/browser/profiles/profile_info_cache.cc File chrome/browser/profiles/profile_info_cache.cc (right): https://codereview.chromium.org/1214483002/diff/1/chrome/browser/profiles/profile_info_cache.cc#newcode1258 chrome/browser/profiles/profile_info_cache.cc:1258: ProfileInfoCache::GetAllProfilesMetadata() ...
5 years, 5 months ago (2015-07-02 18:01:31 UTC) #6
anthonyvd
Thanks for the comments and sorry for the delay. Here's a new shiny patchset that ...
5 years, 5 months ago (2015-07-07 21:05:32 UTC) #7
Mike Lerman
Just down to comments and nits - everything major about the API looks good! https://codereview.chromium.org/1214483002/diff/40001/chrome/browser/profiles/profile_attributes_entry.h ...
5 years, 5 months ago (2015-07-08 18:26:35 UTC) #8
anthonyvd
As usual, thanks for the feedback! Here's a new patchset and some comments :) https://codereview.chromium.org/1214483002/diff/40001/chrome/browser/profiles/profile_attributes_storage_unittest.cc ...
5 years, 5 months ago (2015-07-09 17:02:14 UTC) #9
Mike Lerman
Great! Woo! Fantastic! LGTM! https://codereview.chromium.org/1214483002/diff/80001/chrome/browser/profiles/profile_info_cache.h File chrome/browser/profiles/profile_info_cache.h (right): https://codereview.chromium.org/1214483002/diff/80001/chrome/browser/profiles/profile_info_cache.h#newcode167 chrome/browser/profiles/profile_info_cache.h:167: // ProfileMetadataStorage: On 2015/07/09 17:02:14, ...
5 years, 5 months ago (2015-07-09 20:47:27 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1214483002/230001
5 years, 5 months ago (2015-07-13 15:36:32 UTC) #13
commit-bot: I haz the power
Committed patchset #13 (id:230001)
5 years, 5 months ago (2015-07-13 15:42:17 UTC) #14
commit-bot: I haz the power
5 years, 5 months ago (2015-07-13 15:43:24 UTC) #15
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/b50a7cbab0df3cc66f1881dcb08e4cef18f96835
Cr-Commit-Position: refs/heads/master@{#338513}

Powered by Google App Engine
This is Rietveld 408576698