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

Issue 1794353003: Refactor ProfileInfoCache in c/b/profiles (Closed)

Created:
4 years, 9 months ago by lwchkg
Modified:
4 years, 8 months ago
CC:
chromium-reviews, Peter Beverloo, posciak+watch_chromium.org, mlamouri+watch-notifications_chromium.org, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, rginda+watch_chromium.org, Moe
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ProfileInfoCache in most of c/b/profiles ProfileInfoCache is being refactored into ProfileAttributesStorage and ProfileAttributesEntry, which use profile paths instead of numerical indices in the interface. See https://crrev.com/94dacdb8289038b7fa68c9f2bd57d5311b2cb5cb for details. TBR=tommi@chromium.org BUG=305720 Committed: https://crrev.com/143d02516f5a4459076f21bd9557a18638e657de Cr-Commit-Position: refs/heads/master@{#389279} Committed: https://crrev.com/498e924981ba4e85ea6c5bc5bcedeea655090743 Cr-Commit-Position: refs/heads/master@{#389376}

Patch Set 1 : #

Total comments: 30

Patch Set 2 : Reverting a few changes #

Total comments: 6

Patch Set 3 : Rebased (cannot build, don't try) #

Patch Set 4 : Removed ProfileAttributesEntry::SaveAvatarImage, added some #includes. #

Patch Set 5 : Added some comments for the naked the brackets as suggested. #

Patch Set 6 : Added LOG(WARNING) for CQ dry runs (don't commit) #

Patch Set 7 : Rebased, added signin_create_profile_handler.cc (LOG(WARNING) still being there, don't commit.) #

Patch Set 8 : Rebased #

Patch Set 9 : Replaced LOG(WARNING) by UMA histograms #

Total comments: 10

Patch Set 10 : Changed UMA histogram code according to comments. #

Patch Set 11 : Fix a typo in some Mac-only code (fortunately caught by compiler) #

Patch Set 12 : More Mac-only fixes #

Total comments: 13

Patch Set 13 : Updated histograms according to comments #

Patch Set 14 : Updated histograms (again) according to comment. #

Patch Set 15 : Rebased and added signin_create_profile_handler_unittest.cc because of compile failure #

Patch Set 16 : Fix a bug that causes unit tests without debug code to fail. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -500 lines) Patch
M chrome/browser/app_controller_mac_browsertest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/media/tab_desktop_media_list.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/notifications/platform_notification_service_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/gaia_info_update_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +18 lines, -28 lines 0 comments Download
M chrome/browser/profiles/gaia_info_update_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 9 chunks +38 lines, -21 lines 0 comments Download
M chrome/browser/profiles/profile_attributes_entry.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_attributes_entry.cc View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_attributes_storage.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_icon_util.cc View 1 2 3 4 5 6 7 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +47 lines, -49 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_list_desktop_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_manager.h View 1 2 3 4 5 6 7 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 20 chunks +89 lines, -81 lines 0 comments Download
M chrome/browser/profiles/profile_manager_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 chunks +51 lines, -40 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 1 2 3 4 5 6 7 8 9 10 25 chunks +180 lines, -153 lines 0 comments Download
M chrome/browser/profiles/profile_metrics.cc View 5 chunks +23 lines, -21 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_unittest_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.h View 1 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_shortcut_manager_win.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +47 lines, -33 lines 0 comments Download
M chrome/browser/profiles/profile_window.cc View 1 2 7 chunks +25 lines, -18 lines 0 comments Download
M chrome/browser/profiles/profiles_state.h View 2 chunks +6 lines, -7 lines 0 comments Download
M chrome/browser/profiles/profiles_state.cc View 7 chunks +31 lines, -27 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/signin/signin_create_profile_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +4 lines, -2 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +18 lines, -0 lines 0 comments Download

Messages

Total messages: 81 (31 generated)
lwchkg
Dear all, PTAL. Regards, WC Leung. https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/gaia_info_update_service.cc#newcode124 chrome/browser/profiles/gaia_info_update_service.cc:124: ProfileAttributesEntry* entry; Not ...
4 years, 9 months ago (2016-03-14 15:49:10 UTC) #5
Mike Lerman
https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/gaia_info_update_service.cc#newcode124 chrome/browser/profiles/gaia_info_update_service.cc:124: ProfileAttributesEntry* entry; On 2016/03/14 15:49:10, lwchkg wrote: > Not ...
4 years, 9 months ago (2016-03-18 17:10:44 UTC) #6
lwchkg
Thanks for review, and sadly I've discovered a bug I introduced into M50. https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/gaia_info_update_service.cc File ...
4 years, 9 months ago (2016-03-19 18:48:46 UTC) #7
lwchkg
New patch uploaded. (A few changes are reverted, todos added.)
4 years, 8 months ago (2016-03-29 18:43:24 UTC) #8
Mike Lerman
Man, a lot of changes from rebase crept into patch #2; really hard to tell ...
4 years, 8 months ago (2016-03-30 01:18:11 UTC) #9
lwchkg
Sorry for the poor rebase. Will rebase again tomorrow after all the related CL lands. ...
4 years, 8 months ago (2016-03-31 19:32:26 UTC) #10
Mike Lerman
https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/profile_manager.cc File chrome/browser/profiles/profile_manager.cc (right): https://codereview.chromium.org/1794353003/diff/40001/chrome/browser/profiles/profile_manager.cc#newcode821 chrome/browser/profiles/profile_manager.cc:821: if (profile->GetPath().DirName() != user_data_dir()) On 2016/03/31 19:32:26, lwchkg wrote: ...
4 years, 8 months ago (2016-04-04 15:45:31 UTC) #11
lwchkg
Patches 3-5 uploaded. PTAL. Anyway, I did not add the UMA_HISTOGRAM yet. I'll locally add ...
4 years, 8 months ago (2016-04-06 16:17:52 UTC) #12
lwchkg
Uploaded patch #6 because the browser tests lasts too long for my computer (looks like ...
4 years, 8 months ago (2016-04-07 16:10:37 UTC) #13
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/140001
4 years, 8 months ago (2016-04-07 17:04:54 UTC) #15
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/165836)
4 years, 8 months ago (2016-04-07 17:16:07 UTC) #17
lwchkg
+rogerta Dear Roger, PTAL on signin_create_profile_handler.cc. It's a follow-up of https://crrev.com/1d0bb14e8121201dd393eef0f43834327702815c Anyway Mike/Roger: please start ...
4 years, 8 months ago (2016-04-07 18:15:53 UTC) #19
lwchkg
On 2016/04/06 16:17:52, lwchkg wrote: > Patches 3-5 uploaded. PTAL. > > Anyway, I did ...
4 years, 8 months ago (2016-04-12 13:14:20 UTC) #20
lwchkg
Dear Mike, New patch uploaded. PTAL. (Note: you might want to comment about the naming ...
4 years, 8 months ago (2016-04-12 14:09:03 UTC) #21
Mike Lerman
https://codereview.chromium.org/1794353003/diff/200001/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): https://codereview.chromium.org/1794353003/diff/200001/chrome/browser/profiles/gaia_info_update_service.cc#newcode206 chrome/browser/profiles/gaia_info_update_service.cc:206: // These metrics should logged only on this schedule. ...
4 years, 8 months ago (2016-04-13 15:07:42 UTC) #22
lwchkg
Thanks for review. A new patch is uploaded. PTAL. https://codereview.chromium.org/1794353003/diff/200001/chrome/browser/profiles/gaia_info_update_service.cc File chrome/browser/profiles/gaia_info_update_service.cc (right): https://codereview.chromium.org/1794353003/diff/200001/chrome/browser/profiles/gaia_info_update_service.cc#newcode206 chrome/browser/profiles/gaia_info_update_service.cc:206: ...
4 years, 8 months ago (2016-04-13 16:50:57 UTC) #23
Mike Lerman
Okay. I somewhat nervously say LGTM :)
4 years, 8 months ago (2016-04-18 14:34:40 UTC) #24
lwchkg
On 2016/04/18 14:34:40, Mike Lerman wrote: > Okay. I somewhat nervously say LGTM :) Nervously? ...
4 years, 8 months ago (2016-04-18 15:20:41 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/220001
4 years, 8 months ago (2016-04-18 15:21:37 UTC) #27
Mike Lerman
On 2016/04/18 15:21:37, commit-bot: I haz the power wrote: > Dry run: CQ is trying ...
4 years, 8 months ago (2016-04-18 15:23:52 UTC) #28
commit-bot: I haz the power
Dry run: 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/189587) mac_chromium_rel_ng on ...
4 years, 8 months ago (2016-04-18 15:41:27 UTC) #30
lwchkg
On 2016/04/18 15:23:52, Mike Lerman wrote: > On 2016/04/18 15:21:37, commit-bot: I haz the power ...
4 years, 8 months ago (2016-04-18 15:45:14 UTC) #31
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/240001
4 years, 8 months ago (2016-04-18 15:57:23 UTC) #33
commit-bot: I haz the power
Dry run: 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/189597)
4 years, 8 months ago (2016-04-18 16:08:49 UTC) #35
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/260001
4 years, 8 months ago (2016-04-18 23:15:50 UTC) #37
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-19 00:38:31 UTC) #39
lwchkg
+owners of files Dear all, PTAL on this CL. Thanks. Here are the files you ...
4 years, 8 months ago (2016-04-20 14:03:16 UTC) #41
Mike Lerman
On 2016/04/20 14:03:16, lwchkg wrote: > +owners of files > > Dear all, > > ...
4 years, 8 months ago (2016-04-20 14:08:25 UTC) #42
dewittj
notifications lgtm
4 years, 8 months ago (2016-04-20 14:30:08 UTC) #43
Robert Sesek
app_controller_mac_browsertest.mm LGTM
4 years, 8 months ago (2016-04-20 14:43:53 UTC) #44
Ilya Sherman
histograms LGTM % nits: https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml#newcode40561 tools/metrics/histograms/histograms.xml:40561: + enum="BooleanEnabled"> nit: I think ...
4 years, 8 months ago (2016-04-20 23:21:40 UTC) #45
Mike Lerman
https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml#newcode40566 tools/metrics/histograms/histograms.xml:40566: + stable. On 2016/04/20 23:21:40, Ilya Sherman wrote: > ...
4 years, 8 months ago (2016-04-20 23:47:14 UTC) #46
lwchkg
New patch uploaded. Mike: can you help to confirm the meaning of "M53" in the ...
4 years, 8 months ago (2016-04-21 17:22:07 UTC) #47
Mike Lerman
https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml#newcode40566 tools/metrics/histograms/histograms.xml:40566: + stable. On 2016/04/21 17:22:07, lwchkg wrote: > On ...
4 years, 8 months ago (2016-04-21 17:32:51 UTC) #48
lwchkg
https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml File tools/metrics/histograms/histograms.xml (right): https://codereview.chromium.org/1794353003/diff/260001/tools/metrics/histograms/histograms.xml#newcode40566 tools/metrics/histograms/histograms.xml:40566: + stable. On 2016/04/21 17:32:51, Mike Lerman wrote: > ...
4 years, 8 months ago (2016-04-21 17:59:28 UTC) #49
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/300001
4 years, 8 months ago (2016-04-21 18:00:27 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/171517)
4 years, 8 months ago (2016-04-21 18:09:46 UTC) #54
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/320001
4 years, 8 months ago (2016-04-22 13:36:42 UTC) #56
lwchkg
New patch uploaded with one file added. Mike: PTAL at https://codereview.chromium.org/1794353003/diff/320001/chrome/browser/ui/webui/signin/signin_create_profile_handler_unittest.cc . Thanks!
4 years, 8 months ago (2016-04-22 14:16:16 UTC) #58
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win_chromium_compile_dbg_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/179141)
4 years, 8 months ago (2016-04-22 15:04:15 UTC) #60
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/320001
4 years, 8 months ago (2016-04-22 15:28:10 UTC) #62
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 16:08:40 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/320001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/320001
4 years, 8 months ago (2016-04-22 22:41:30 UTC) #67
commit-bot: I haz the power
Committed patchset #15 (id:320001)
4 years, 8 months ago (2016-04-22 22:48:11 UTC) #69
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/143d02516f5a4459076f21bd9557a18638e657de Cr-Commit-Position: refs/heads/master@{#389279}
4 years, 8 months ago (2016-04-22 22:50:07 UTC) #71
apacible
Some GAIAInfoUpdateServiceTests are failing on Mac 10.9. I'm manually reverting since the patch is large. ...
4 years, 8 months ago (2016-04-22 23:39:26 UTC) #72
apacible
On 2016/04/22 23:39:26, apacible wrote: > Some GAIAInfoUpdateServiceTests are failing on Mac 10.9. I'm manually ...
4 years, 8 months ago (2016-04-22 23:47:16 UTC) #73
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1794353003/340001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1794353003/340001
4 years, 8 months ago (2016-04-23 09:47:13 UTC) #77
commit-bot: I haz the power
Committed patchset #16 (id:340001)
4 years, 8 months ago (2016-04-23 11:04:30 UTC) #79
commit-bot: I haz the power
4 years, 8 months ago (2016-04-23 11:06:19 UTC) #81
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/498e924981ba4e85ea6c5bc5bcedeea655090743
Cr-Commit-Position: refs/heads/master@{#389376}

Powered by Google App Engine
This is Rietveld 408576698