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

Issue 1701563002: Refactor ProfileInfoCache in c/b/ui/views (Closed)

Created:
4 years, 10 months ago by lwchkg
Modified:
4 years, 10 months ago
CC:
chromium-reviews, tfarina, oshima+watch_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor ProfileInfoCache in c/b/ui/views ProfileInfoCache is being refactored into ProfileAttributesStorage and ProfileAttributesEntry, which use profile paths instead of numerical indices in the interface. See https://codereview.chromium.org/1599013002/ for details. BUG=305720 Committed: https://crrev.com/01cc8b10bc3cd1b53965a7fab5b055dc6564caed Cr-Commit-Position: refs/heads/master@{#376513}

Patch Set 1 #

Total comments: 21

Patch Set 2 : Respond to comments #

Total comments: 1

Patch Set 3 : Respond to comments #

Total comments: 15

Patch Set 4 : Respond to most of the comments #

Patch Set 5 : Respond to comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -71 lines) Patch
M chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/profiles/avatar_menu.cc View 1 2 3 2 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_list_desktop_browsertest.cc View 4 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_list_desktop_unittest.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 3 chunks +8 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_window_property_manager_browsertest_win.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/global_menu_bar_x11.cc View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.h View 1 2 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/new_avatar_button.cc View 1 2 3 4 chunks +12 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 3 chunks +21 lines, -10 lines 0 comments Download

Messages

Total messages: 43 (12 generated)
lwchkg
Dear all, PTAL: Here are the files you own: Peter: c/b/ui/views Anthony, Mike: c/b/profiles (please ...
4 years, 10 months ago (2016-02-14 17:07:18 UTC) #2
lwchkg
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/profiles/avatar_menu.cc#newcode43 chrome/browser/profiles/avatar_menu.cc:43: AvatarMenu::AvatarMenu(ProfileAttributesStorage* /*profile_storage*/, I've found another 5 Mac-only files calling ...
4 years, 10 months ago (2016-02-14 17:22:37 UTC) #3
Peter Kasting
LGTM https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode195 chrome/browser/ui/views/profiles/new_avatar_button.cc:195: bool use_generic_button = (!browser_->profile()->IsGuestSession() && Wrapping/indenting here is ...
4 years, 10 months ago (2016-02-16 20:49:54 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701563002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701563002/20001
4 years, 10 months ago (2016-02-17 17:03:40 UTC) #6
lwchkg
PK: Thanks for a long review. A revised patch is uploaded. Anthony: Resend invitation to ...
4 years, 10 months ago (2016-02-17 17:09:31 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 10 months ago (2016-02-17 17:47:21 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc File chrome/browser/ui/views/profiles/new_avatar_button.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/profiles/new_avatar_button.cc#newcode195 chrome/browser/ui/views/profiles/new_avatar_button.cc:195: bool use_generic_button = (!browser_->profile()->IsGuestSession() && On 2016/02/17 17:09:31, ...
4 years, 10 months ago (2016-02-17 22:16:27 UTC) #12
achuithb
lgtm https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc File chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc (right): https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc#newcode94 chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc:94: mock_observer_.get(), NULL)); nit: nullptr https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): ...
4 years, 10 months ago (2016-02-19 11:55:22 UTC) #13
lwchkg
achuith: Looks like the nit is not trivial to fix. Please see my comments below. ...
4 years, 10 months ago (2016-02-19 15:00:10 UTC) #14
achuithb
https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc File chrome/browser/ui/views/frame/browser_non_client_frame_view.cc (right): https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode37 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:37: avatar_button_(nullptr) { On 2016/02/19 15:00:10, lwchkg wrote: > On ...
4 years, 10 months ago (2016-02-19 15:06:18 UTC) #15
Mike Lerman
https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/profiles/avatar_menu.cc#newcode47 chrome/browser/profiles/avatar_menu.cc:47: &g_browser_process->profile_manager()->GetProfileInfoCache())), Would it be possible to move ProfileList into ...
4 years, 10 months ago (2016-02-19 15:08:12 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701563002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701563002/40001
4 years, 10 months ago (2016-02-19 15:08:38 UTC) #18
anthonyvd
c/b/profiles/* lgtm, thanks! https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/profiles/avatar_menu.cc#newcode43 chrome/browser/profiles/avatar_menu.cc:43: AvatarMenu::AvatarMenu(ProfileAttributesStorage* /*profile_storage*/, Can you file a ...
4 years, 10 months ago (2016-02-19 15:09:07 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/24219) android_chromium_gn_compile_rel on ...
4 years, 10 months ago (2016-02-19 15:16:26 UTC) #21
lwchkg
Replied some of the comments. Will address the others after my rebase and recompile is ...
4 years, 10 months ago (2016-02-19 16:46:04 UTC) #22
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701563002/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701563002/60001
4 years, 10 months ago (2016-02-19 18:21:03 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1701563002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1701563002/80001
4 years, 10 months ago (2016-02-19 18:45:05 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 10 months ago (2016-02-19 19:40:29 UTC) #29
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/01cc8b10bc3cd1b53965a7fab5b055dc6564caed Cr-Commit-Position: refs/heads/master@{#376513}
4 years, 10 months ago (2016-02-19 19:42:32 UTC) #31
lwchkg
https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc File chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc (right): https://codereview.chromium.org/1701563002/diff/40001/chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc#newcode94 chrome/browser/chromeos/profiles/profile_list_chromeos_unittest.cc:94: mock_observer_.get(), NULL)); On 2016/02/19 11:55:22, achuithb wrote: > nit: ...
4 years, 10 months ago (2016-02-20 05:20:04 UTC) #32
lwchkg
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/14 17:07:18, lwchkg wrote: > ...
4 years, 10 months ago (2016-02-24 18:07:28 UTC) #33
Mike Lerman
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/24 18:07:27, lwchkg wrote: > ...
4 years, 10 months ago (2016-02-24 18:11:37 UTC) #34
lwchkg
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { > > Well, Guest and System ...
4 years, 10 months ago (2016-02-24 18:43:18 UTC) #35
Mike Lerman
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/24 18:43:18, lwchkg wrote: > ...
4 years, 10 months ago (2016-02-24 20:44:23 UTC) #36
lwchkg
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/24 20:44:22, Mike Lerman wrote: ...
4 years, 10 months ago (2016-02-26 15:27:30 UTC) #37
Mike Lerman
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/26 15:27:30, lwchkg wrote: > ...
4 years, 10 months ago (2016-02-26 15:47:49 UTC) #38
lwchkg
https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc File chrome/browser/ui/views/frame/browser_view.cc (right): https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 chrome/browser/ui/views/frame/browser_view.cc:648: GetProfileAttributesWithPath(browser_->profile()->GetPath(), &entry)) { On 2016/02/26 15:47:49, Mike Lerman wrote: ...
4 years, 10 months ago (2016-02-26 16:47:33 UTC) #39
Mike Lerman
On 2016/02/26 16:47:33, lwchkg wrote: > https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc > File chrome/browser/ui/views/frame/browser_view.cc (right): > > https://codereview.chromium.org/1701563002/diff/1/chrome/browser/ui/views/frame/browser_view.cc#newcode648 > ...
4 years, 10 months ago (2016-02-26 16:53:17 UTC) #40
lwchkg
> > Found it. There's a IsProfileMarkedForDeletion() in the anonymous namespace in > > profile_manager.cc. ...
4 years, 10 months ago (2016-02-26 17:38:20 UTC) #41
Mike Lerman
On 2016/02/26 17:38:20, lwchkg wrote: > > > Found it. There's a IsProfileMarkedForDeletion() in the ...
4 years, 10 months ago (2016-02-26 18:47:38 UTC) #42
Mike Lerman
4 years, 10 months ago (2016-02-26 18:48:05 UTC) #43
Message was sent while issue was closed.
We should move this to an email or something, or a bug, but off this
already-landed CL.

Powered by Google App Engine
This is Rietveld 408576698