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

Issue 845373002: Change default code flag to NewAvatarMenu. (Closed)

Created:
5 years, 11 months ago by Mike Lerman
Modified:
5 years, 9 months ago
CC:
chromium-reviews, Jay Civelli
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change default code flag to NewAvatarMenu. Flags or Finch Configs still take priority, but all else being equal we should direct the user to NewAvatarMenu. This CL fixes a few issues that arise when the flag's on: - Missing alt text on chrome://settings - Unit tests for old components (OldAvatarMenu) need to force that state - The ProfileAvatarDownloader works automatically with NewAvatarMenu on - this needs to be accounted for so it doesn't leave images hanging around. - BookmarkBubbleSigninDelegate now triggers the User Menu, not a Sign in tab, on Desktop. (note this can't be easily tested in Cocoa) BUG=287883 Committed: https://crrev.com/e4d285b050ab3429f7d937fde6234fcba07a360e Cr-Commit-Position: refs/heads/master@{#321770}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : rebase #

Patch Set 4 : Empty alt text for profile icon that's next to the profile name. #

Patch Set 5 : BookmarkBubbleSigninDelegate now triggers ProfileChooser. Testable only within Views. #

Patch Set 6 : Move unit tests for old UI components onto old flag #

Patch Set 7 : Disable NewAvatarMenu for tests of old components #

Patch Set 8 : Disable new avatar menu properly (compile) #

Patch Set 9 : Rebase #

Patch Set 10 : ChromeOS handles signin differently from desktop #

Patch Set 11 : Testing profiles need downloaded icons so they don't try and get them during tests. #

Patch Set 12 : small tweaks #

Total comments: 3

Patch Set 13 : Per shess@ - revert unnecessary changes to avatar_menu_button_controler_unittest #

Patch Set 14 : Compiling. Yeah, we should do that. #

Total comments: 8

Patch Set 15 : sky@ comments; shess@ nit #

Total comments: 16

Patch Set 16 : Remove an ifdef #

Patch Set 17 : ProfileMenuController updated; ProfileAvatarDownloader is desktop only. #

Patch Set 18 : Rebase #

Patch Set 19 : TestingProfileManager only 'downloads' an icon if none yet exists. Add DCHECK to ProfileInfoCache. #

Patch Set 20 : Remove proposed DCHECK, breaks sync_integration_tests #

Patch Set 21 : Load avatar icons into cache for tests. #

Patch Set 22 : Linux compile #

Total comments: 10

Patch Set 23 : noms nits #

Patch Set 24 : Rebase #

Patch Set 25 : ash compile #

Patch Set 26 : Only preload the avatar on Desktop; we don't download on ChromeOS. #

Patch Set 27 : Rebase #

Total comments: 3

Patch Set 28 : consty const #

Total comments: 3

Patch Set 29 : Test comment. GetAvatarIcon's no longer const. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -186 lines) Patch
M chrome/browser/notifications/message_center_settings_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +12 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_avatar_downloader.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_avatar_downloader.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 3 chunks +10 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +37 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_info_interface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/resources/options/browser_options_profile_list.js View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync/sync_error_notifier_ash_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 2 chunks +13 lines, -0 lines 0 comments Download
D chrome/browser/ui/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc View 1 2 3 4 1 chunk +0 lines, -124 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm View 1 2 3 4 5 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm View 1 2 3 4 5 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 4 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +10 lines, -8 lines 0 comments Download
A + chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 6 chunks +36 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button_browsertest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_screen_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 4 chunks +13 lines, -13 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 2 chunks +1 line, -1 line 0 comments Download
M chrome/test/base/testing_profile_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +18 lines, -0 lines 0 comments Download
M components/signin/core/common/profile_management_switches.cc View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download

Messages

Total messages: 30 (5 generated)
Mike Lerman
Hi all, I'm trying to move the Chrome codebase to use NewAvatarMenu as default (still ...
5 years, 9 months ago (2015-03-06 20:34:23 UTC) #2
Dan Beam
lgtm
5 years, 9 months ago (2015-03-06 20:35:13 UTC) #3
Scott Hess - ex-Googler
lgtm for cocoa/ https://codereview.chromium.org/845373002/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm (right): https://codereview.chromium.org/845373002/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm#newcode37 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm:37: testing_profile_manager()->CreateTestingProfile( Why are you going to ...
5 years, 9 months ago (2015-03-07 04:33:07 UTC) #4
Roger Tawa OOO till Jul 10th
lgtm Should you remove explicit calls to EnableNewAvatarMenuForTesting() in tests?
5 years, 9 months ago (2015-03-09 14:27:18 UTC) #5
Mike Lerman
Roger - I was going to remove EnableNewAvatarMenuForTesting in another CL. https://codereview.chromium.org/845373002/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm (right): ...
5 years, 9 months ago (2015-03-09 14:28:34 UTC) #6
Scott Hess - ex-Googler
LGTM with cocoa, but slight indent fix. https://codereview.chromium.org/845373002/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm (right): https://codereview.chromium.org/845373002/diff/220001/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm#newcode37 chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller_unittest.mm:37: testing_profile_manager()->CreateTestingProfile( On ...
5 years, 9 months ago (2015-03-09 15:36:28 UTC) #7
sky
https://codereview.chromium.org/845373002/diff/260001/chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc File chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc (right): https://codereview.chromium.org/845373002/diff/260001/chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc#newcode27 chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc:27: nit: remove this newline. https://codereview.chromium.org/845373002/diff/260001/chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc#newcode54 chrome/browser/ui/views/bookmarks/bookmark_bubble_sign_in_delegate_browsertest.cc:54: base::MessageLoop::current()->RunUntilIdle(); We do ...
5 years, 9 months ago (2015-03-09 15:54:20 UTC) #8
noms (inactive)
https://codereview.chromium.org/845373002/diff/280001/chrome/browser/profiles/profile_info_cache_unittest.cc File chrome/browser/profiles/profile_info_cache_unittest.cc (right): https://codereview.chromium.org/845373002/diff/280001/chrome/browser/profiles/profile_info_cache_unittest.cc#newcode125 chrome/browser/profiles/profile_info_cache_unittest.cc:125: // A bitmap for the high res avatar cache. ...
5 years, 9 months ago (2015-03-09 19:26:18 UTC) #9
Mike Lerman
Comments addressed. Note I'm still working to resolve the ASAN issues, which will require changes ...
5 years, 9 months ago (2015-03-10 15:58:59 UTC) #10
noms (inactive)
https://codereview.chromium.org/845373002/diff/280001/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm (right): https://codereview.chromium.org/845373002/diff/280001/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm#newcode36 chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm:36: switches::DisableNewAvatarMenuForTesting( On 2015/03/10 15:58:58, Mike Lerman wrote: > On ...
5 years, 9 months ago (2015-03-17 14:26:31 UTC) #12
Mike Lerman
https://codereview.chromium.org/845373002/diff/280001/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm (right): https://codereview.chromium.org/845373002/diff/280001/chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm#newcode36 chrome/browser/ui/cocoa/profiles/profile_menu_controller_unittest.mm:36: switches::DisableNewAvatarMenuForTesting( On 2015/03/17 14:26:30, Monica Dinculescu wrote: > On ...
5 years, 9 months ago (2015-03-18 19:29:48 UTC) #13
Mike Lerman
Ping reviewers! Thanks :) sky - c/b/ui/views/bookmarks, c/b/ui/bookmarks and c/b/ui/views/profiles, c/test too noms - c/b/profiles ...
5 years, 9 months ago (2015-03-19 15:53:33 UTC) #15
Jun Mukai
https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc File chrome/browser/notifications/message_center_settings_controller_unittest.cc (right): https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc#newcode45 chrome/browser/notifications/message_center_settings_controller_unittest.cc:45: ProfileInfoCache& cache = *testing_profile_manager_.profile_info_cache(); Why not ProfileInfoCache* cache = ...
5 years, 9 months ago (2015-03-19 16:51:20 UTC) #16
sky
LGTM
5 years, 9 months ago (2015-03-19 16:51:55 UTC) #17
noms (inactive)
lgtm % nit https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc File chrome/browser/notifications/message_center_settings_controller_unittest.cc (right): https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc#newcode45 chrome/browser/notifications/message_center_settings_controller_unittest.cc:45: ProfileInfoCache& cache = *testing_profile_manager_.profile_info_cache(); nit: const?
5 years, 9 months ago (2015-03-19 16:53:16 UTC) #18
Mike Lerman
https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc File chrome/browser/notifications/message_center_settings_controller_unittest.cc (right): https://codereview.chromium.org/845373002/diff/540001/chrome/browser/notifications/message_center_settings_controller_unittest.cc#newcode45 chrome/browser/notifications/message_center_settings_controller_unittest.cc:45: ProfileInfoCache& cache = *testing_profile_manager_.profile_info_cache(); On 2015/03/19 16:53:16, Monica Dinculescu ...
5 years, 9 months ago (2015-03-19 17:23:56 UTC) #19
Jun Mukai
c/b/notifications lgtm, with a comment. https://codereview.chromium.org/845373002/diff/560001/chrome/browser/notifications/message_center_settings_controller_unittest.cc File chrome/browser/notifications/message_center_settings_controller_unittest.cc (right): https://codereview.chromium.org/845373002/diff/560001/chrome/browser/notifications/message_center_settings_controller_unittest.cc#newcode49 chrome/browser/notifications/message_center_settings_controller_unittest.cc:49: cache.GetIndexOfProfileWithPath(profile->GetPath())); Personally I think ...
5 years, 9 months ago (2015-03-19 18:27:45 UTC) #20
Jun Mukai
https://codereview.chromium.org/845373002/diff/560001/chrome/browser/notifications/message_center_settings_controller_unittest.cc File chrome/browser/notifications/message_center_settings_controller_unittest.cc (right): https://codereview.chromium.org/845373002/diff/560001/chrome/browser/notifications/message_center_settings_controller_unittest.cc#newcode49 chrome/browser/notifications/message_center_settings_controller_unittest.cc:49: cache.GetIndexOfProfileWithPath(profile->GetPath())); Ah, could you also add more comments for ...
5 years, 9 months ago (2015-03-19 18:34:25 UTC) #21
Mike Lerman
Monica, can you also take a look at the changes I made to ProfileInfoCache and ...
5 years, 9 months ago (2015-03-19 19:27:30 UTC) #22
Jun Mukai
lgtm. thanks!
5 years, 9 months ago (2015-03-19 19:45:58 UTC) #23
noms (inactive)
still lgtm
5 years, 9 months ago (2015-03-19 19:46:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/845373002/580001
5 years, 9 months ago (2015-03-23 12:51:25 UTC) #27
commit-bot: I haz the power
Committed patchset #29 (id:580001)
5 years, 9 months ago (2015-03-23 14:26:29 UTC) #28
commit-bot: I haz the power
Patchset 29 (id:??) landed as https://crrev.com/e4d285b050ab3429f7d937fde6234fcba07a360e Cr-Commit-Position: refs/heads/master@{#321770}
5 years, 9 months ago (2015-03-23 14:27:36 UTC) #29
Mike Lerman
5 years, 9 months ago (2015-03-23 16:27:07 UTC) #30
Message was sent while issue was closed.
A revert of this CL (patchset #29 id:580001) has been created in
https://codereview.chromium.org/1020863007/ by mlerman@chromium.org.

The reason for reverting is: Broke Linux Valgrind tests on the waterfall. I'll
need to do more testing / work on this CL before it's ready to land.

http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28v....

Powered by Google App Engine
This is Rietveld 408576698