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

Issue 1972033002: Simplify some old avatar menu button code. (Closed)

Created:
4 years, 7 months ago by Evan Stade
Modified:
4 years, 7 months ago
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Simplify some old avatar menu button code. The view is still used for: - the incognito icon - the CrOS multi-profile teleported window case. To see this, sign into a second user, open a window, and click "send to XXX's desktop". It no longer needs to have a menu attached ever. BUG=534850, 591586 TBR=achuith@chromium.org Committed: https://crrev.com/fe4b88ae074da364e01aea88fa65fe39b99753ab Cr-Commit-Position: refs/heads/master@{#395397}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : got confused #

Patch Set 4 : test compile #

Patch Set 5 : work on linux #

Patch Set 6 : fix glass too hopefully #

Patch Set 7 : more fixes #

Patch Set 8 : fixes #

Patch Set 9 : fix test #

Total comments: 48

Patch Set 10 : pkasting review #

Patch Set 11 : fixes #

Total comments: 4

Patch Set 12 : try to fix build #

Patch Set 13 : ash browser test #

Patch Set 14 : git cl try #

Patch Set 15 : reinstate ash browser test fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+297 lines, -539 lines) Patch
M chrome/browser/chromeos/profiles/avatar_menu_chromeos.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.h View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/profiles/avatar_menu_desktop.cc View 1 2 3 4 5 6 7 8 9 3 chunks +2 lines, -5 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_menu_controller.mm View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/view_ids.h View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/apps/chrome_native_app_window_views.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/avatar_button_manager.cc View 1 2 3 4 5 6 7 8 9 2 chunks +10 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.h View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_frame.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +16 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +56 lines, -67 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +19 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_ash_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_browsertest_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc View 1 2 3 4 5 6 7 8 9 8 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 6 7 13 3 chunks +1 line, -31 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view_unittest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/views/frame/glass_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 6 chunks +14 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view.cc View 1 2 3 4 5 6 7 8 9 4 chunks +5 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.h View 1 2 3 4 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 1 2 3 4 5 6 7 8 9 6 chunks +8 lines, -13 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_delegate.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +21 lines, -29 lines 0 comments Download
D chrome/browser/ui/views/frame/taskbar_decorator.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -23 lines 0 comments Download
D chrome/browser/ui/views/frame/taskbar_decorator.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -12 lines 0 comments Download
A + chrome/browser/ui/views/frame/taskbar_decorator_win.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/frame/taskbar_decorator_win.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
D chrome/browser/ui/views/profiles/avatar_menu_button.h View 1 chunk +0 lines, -84 lines 0 comments Download
D chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 chunk +0 lines, -159 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 4 5 6 3 chunks +2 lines, -3 lines 0 comments Download
A chrome/browser/ui/views/profiles/profile_indicator_icon.h View 1 2 3 4 5 6 7 8 9 1 chunk +47 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/profiles/profile_indicator_icon.cc View 1 2 3 4 5 6 7 8 9 1 chunk +54 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 45 (22 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972033002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/120001
4 years, 7 months ago (2016-05-12 19:08:12 UTC) #4
Evan Stade
"avatar_button", "new avatar button", "old avatar button" was confusing me so thoroughly I had to ...
4 years, 7 months ago (2016-05-12 19:09:21 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/136514) linux_chromium_chromeos_ozone_rel_ng on ...
4 years, 7 months ago (2016-05-12 19:22:40 UTC) #8
Evan Stade
ping
4 years, 7 months ago (2016-05-16 22:53:33 UTC) #9
Peter Kasting
https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/profiles/avatar_menu_desktop.cc File chrome/browser/profiles/avatar_menu_desktop.cc (left): https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/profiles/avatar_menu_desktop.cc#oldcode24 chrome/browser/profiles/avatar_menu_desktop.cc:24: NOTREACHED(); So can this actually be reached, maybe for ...
4 years, 7 months ago (2016-05-17 03:51:43 UTC) #10
Evan Stade
https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/profiles/avatar_menu_desktop.cc File chrome/browser/profiles/avatar_menu_desktop.cc (left): https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/profiles/avatar_menu_desktop.cc#oldcode24 chrome/browser/profiles/avatar_menu_desktop.cc:24: NOTREACHED(); On 2016/05/17 03:51:42, Peter Kasting wrote: > So ...
4 years, 7 months ago (2016-05-17 18:13:09 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972033002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/180001
4 years, 7 months ago (2016-05-17 18:22:03 UTC) #14
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/191634) win_chromium_x64_rel_ng on ...
4 years, 7 months ago (2016-05-17 18:29:43 UTC) #16
anthonyvd
c/b/profiles lgtm. Great cleanup!
4 years, 7 months ago (2016-05-17 18:30:07 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/1972033002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/200001
4 years, 7 months ago (2016-05-18 00:18:21 UTC) #19
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/139116) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 7 months ago (2016-05-18 00:33:09 UTC) #21
Peter Kasting
LGTM https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/ui/view_ids.h File chrome/browser/ui/view_ids.h (right): https://codereview.chromium.org/1972033002/diff/160001/chrome/browser/ui/view_ids.h#newcode25 chrome/browser/ui/view_ids.h:25: VIEW_ID_PROFILE_INDICATOR_ICON, On 2016/05/17 18:13:08, Evan Stade wrote: > ...
4 years, 7 months ago (2016-05-18 02:44:01 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/1972033002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/260001
4 years, 7 months ago (2016-05-20 19:58:29 UTC) #24
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_chromeos_compile_dbg_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_compile_dbg_ng/builds/204470)
4 years, 7 months ago (2016-05-20 20:16:45 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972033002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/280001
4 years, 7 months ago (2016-05-20 22:04:41 UTC) #28
Evan Stade
https://codereview.chromium.org/1972033002/diff/160001/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/1972033002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode173 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:173: AvatarMenu::GetImageForMenuButton(profile->GetPath(), &icon, &unused); On 2016/05/18 02:44:01, Peter Kasting wrote: ...
4 years, 7 months ago (2016-05-20 22:04:43 UTC) #29
Peter Kasting
Still LGTM https://codereview.chromium.org/1972033002/diff/160001/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/1972033002/diff/160001/chrome/browser/ui/views/frame/browser_non_client_frame_view.cc#newcode173 chrome/browser/ui/views/frame/browser_non_client_frame_view.cc:173: AvatarMenu::GetImageForMenuButton(profile->GetPath(), &icon, &unused); On 2016/05/20 22:04:42, Evan ...
4 years, 7 months ago (2016-05-20 22:24:22 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972033002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/280001
4 years, 7 months ago (2016-05-20 22:36:04 UTC) #34
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/187736)
4 years, 7 months ago (2016-05-20 22:45:00 UTC) #36
Evan Stade
TBR achuith for chrome/browser/chromeos/profiles/avatar_menu_chromeos.cc
4 years, 7 months ago (2016-05-23 18:48:45 UTC) #39
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1972033002/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1972033002/280001
4 years, 7 months ago (2016-05-23 18:49:24 UTC) #41
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 7 months ago (2016-05-23 20:03:53 UTC) #43
commit-bot: I haz the power
4 years, 7 months ago (2016-05-23 20:10:07 UTC) #45
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/fe4b88ae074da364e01aea88fa65fe39b99753ab
Cr-Commit-Position: refs/heads/master@{#395397}

Powered by Google App Engine
This is Rietveld 408576698