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

Issue 1307093004: Remove references to IsNewAvatarMenu since the flag was removed. (Closed)

Created:
5 years, 4 months ago by anthonyvd
Modified:
5 years, 2 months ago
CC:
chromium-reviews, dbeam+watch-options_chromium.org, tim+watch_chromium.org, michaelpg+watch-options_chromium.org, zea+watch_chromium.org, tfarina, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, rginda+watch_chromium.org, plaree+watch_chromium.org, arv+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove references to IsNewAvatarMenu since the flag was removed. This CL removes all references of the new-avatar-menu flag since it's no longer used. The new avatar menu is always shown on desktop and never on Mobile and ChromeOS. BUG=517582 Committed: https://crrev.com/66aa95ddaf6ddf1f731fee87f25148051d770bfa Cr-Commit-Position: refs/heads/master@{#352041}

Patch Set 1 #

Patch Set 2 : Remove references introduced by a revert on ToT #

Patch Set 3 : Fix non-linux builds and ChromeOS tests #

Patch Set 4 : Revert some removal in ChromeOS tests #

Patch Set 5 : Fix Windows and Mac build + ChromeOS tests. #

Patch Set 6 : Mac build #

Patch Set 7 : Remove references to Enable/DisableNewAvatarForTesting #

Patch Set 8 : Update or remove obsolete mac tests. #

Patch Set 9 : Fix goof in gypi #

Patch Set 10 : Use the FRAME_AVATAR_BUTTON define where it's appropriate #

Patch Set 11 : Revert FRAME_AVATAR_BUTTON changes. #

Total comments: 67

Patch Set 12 : Address review feedback #

Total comments: 6

Patch Set 13 : Address follow up feedback #

Patch Set 14 : Fix mac compile #

Patch Set 15 : Correctly close window at end of unit test. #

Total comments: 6

Patch Set 16 : Address review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+230 lines, -817 lines) Patch
M chrome/browser/browser_process_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/chrome_browser_main.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/profiles/avatar_menu.cc View 10 3 chunks +12 lines, -31 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache.cc View 10 8 chunks +20 lines, -19 lines 0 comments Download
M chrome/browser/profiles/profile_info_cache_unittest.cc View 1 2 3 10 5 chunks +2 lines, -11 lines 0 comments Download
M chrome/browser/profiles/profile_list_desktop_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -31 lines 0 comments Download
M chrome/browser/profiles/profile_manager.cc View 1 2 3 10 2 chunks +14 lines, -13 lines 0 comments Download
M chrome/browser/profiles/profile_manager_unittest.cc View 4 chunks +0 lines, -16 lines 0 comments Download
M chrome/browser/profiles/profile_window_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/browser/resources/options/manage_profile_overlay.js View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -14 lines 0 comments Download
M chrome/browser/signin/signin_global_error.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/signin/signin_global_error.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -19 lines 0 comments Download
M chrome/browser/signin/signin_promo.cc View 1 2 3 1 chunk +2 lines, -5 lines 0 comments Download
M chrome/browser/signin/signin_ui_util.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_command_controller_browsertest.cc View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_command_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +2 lines, -42 lines 0 comments Download
M chrome/browser/ui/chrome_pages.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +8 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/bookmarks/bookmark_sync_promo_controller_unittest.mm View 1 2 3 4 5 6 7 1 chunk +0 lines, -51 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_controller.mm View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_base_controller.mm View 1 2 4 3 chunks +28 lines, -43 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_button_controller_unittest.mm View 1 2 3 4 5 6 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +26 lines, -83 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 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/profiles/profile_chooser_controller_unittest.mm View 1 2 3 4 5 6 7 chunks +0 lines, -15 lines 0 comments Download
M chrome/browser/ui/startup/startup_browser_creator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +44 lines, -29 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 11 12 4 chunks +24 lines, -14 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 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 chunks +3 lines, -8 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/views/frame/opaque_browser_frame_view_layout_unittest.cc View 3 chunks +0 lines, -147 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -17 lines 0 comments Download
M chrome/browser/ui/views/profiles/avatar_menu_button_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -65 lines 0 comments Download
M chrome/browser/ui/views/profiles/profile_chooser_view_browsertest.cc View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/chrome_web_ui_controller_factory.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/ui/webui/options/browser_options_handler.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/manage_profile_handler.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/sync_setup_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/signin/inline_login_handler_impl.cc View 1 2 3 2 chunks +6 lines, -20 lines 0 comments Download
M chrome/browser/ui/webui/signin/login_ui_service.cc View 10 1 chunk +8 lines, -17 lines 0 comments Download
M chrome/browser/ui/webui/signin/user_manager_ui_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -10 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M components/signin/core/browser/about_signin_internals.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M components/signin/core/common/profile_management_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -7 lines 0 comments Download
M components/signin/core/common/profile_management_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +2 lines, -33 lines 0 comments Download
M components/signin/core/common/signin_switches.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -2 lines 0 comments Download
M components/signin/core/common/signin_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +0 lines, -6 lines 0 comments Download

Messages

Total messages: 23 (4 generated)
anthonyvd
Hello everyone! This CL rips out most of what was left in the code that ...
5 years, 2 months ago (2015-09-25 22:10:19 UTC) #2
Evan Stade
webui lgtm, one question on manage_profile_overlay.js https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/resources/options/manage_profile_overlay.js File chrome/browser/resources/options/manage_profile_overlay.js (left): https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/resources/options/manage_profile_overlay.js#oldcode116 chrome/browser/resources/options/manage_profile_overlay.js:116: PageManager.closeOverlay(); shouldn't this ...
5 years, 2 months ago (2015-09-25 22:49:11 UTC) #3
Peter Kasting
LGTM. Random grouse: I hope in the future ShouldShowAvatar() gets deleted or changed to be ...
5 years, 2 months ago (2015-09-25 23:42:52 UTC) #4
Evan Stade
> Random grouse: I hope in the future ShouldShowAvatar() gets deleted or changed > to ...
5 years, 2 months ago (2015-09-25 23:48:53 UTC) #5
Robert Sesek
https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/cocoa/cocoa_profile_test.h File chrome/browser/ui/cocoa/cocoa_profile_test.h (right): https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/cocoa/cocoa_profile_test.h#newcode36 chrome/browser/ui/cocoa/cocoa_profile_test.h:36: CocoaProfileTest(bool incognito); Is this change to CocoaProfileTest really necessary? ...
5 years, 2 months ago (2015-09-28 15:14:48 UTC) #6
Mike Lerman
Hey, I took a look at more than just profiles :) https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/profiles/avatar_menu.cc File chrome/browser/profiles/avatar_menu.cc (right): ...
5 years, 2 months ago (2015-09-28 15:23:02 UTC) #7
Roger Tawa OOO till Jul 10th
lgtm https://codereview.chromium.org/1307093004/diff/200001/components/signin/core/common/profile_management_switches.h File components/signin/core/common/profile_management_switches.h (right): https://codereview.chromium.org/1307093004/diff/200001/components/signin/core/common/profile_management_switches.h#newcode39 components/signin/core/common/profile_management_switches.h:39: //void EnableNewAvatarMenuForTesting(base::CommandLine* command_line); On 2015/09/28 15:23:02, Mike Lerman ...
5 years, 2 months ago (2015-09-28 20:01:29 UTC) #8
anthonyvd
Thanks everyone for the feedback, here's a new patchset that should address your comments :) ...
5 years, 2 months ago (2015-09-29 20:23:16 UTC) #10
Robert Sesek
https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/cocoa/cocoa_profile_test.h File chrome/browser/ui/cocoa/cocoa_profile_test.h (right): https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/cocoa/cocoa_profile_test.h#newcode36 chrome/browser/ui/cocoa/cocoa_profile_test.h:36: CocoaProfileTest(bool incognito); On 2015/09/29 20:23:15, anthonyvd wrote: > On ...
5 years, 2 months ago (2015-09-29 20:31:11 UTC) #11
Peter Kasting
LGTM https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/startup/startup_browser_creator.cc File chrome/browser/ui/startup/startup_browser_creator.cc (right): https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/startup/startup_browser_creator.cc#newcode713 chrome/browser/ui/startup/startup_browser_creator.cc:713: if (ShowUserManagerOnStartupIfNeeded(last_used_profile, command_line)) { On 2015/09/29 20:23:15, anthonyvd ...
5 years, 2 months ago (2015-09-29 20:34:16 UTC) #12
sky
LGTM
5 years, 2 months ago (2015-09-29 22:19:18 UTC) #13
anthonyvd
Thanks again for the comments, the latest patchsets should address the remaining comments! https://codereview.chromium.org/1307093004/diff/200001/chrome/browser/ui/cocoa/cocoa_profile_test.h File ...
5 years, 2 months ago (2015-09-30 18:34:03 UTC) #14
Mike Lerman
profiles (and the rest) LGTM!
5 years, 2 months ago (2015-09-30 19:06:35 UTC) #15
Robert Sesek
https://chromiumcodereview.appspot.com/1307093004/diff/280001/chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm (right): https://chromiumcodereview.appspot.com/1307093004/diff/280001/chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm#newcode33 chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm:33: // Incognito, which is the only way to show ...
5 years, 2 months ago (2015-09-30 21:25:08 UTC) #16
anthonyvd
https://chromiumcodereview.appspot.com/1307093004/diff/280001/chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm File chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm (right): https://chromiumcodereview.appspot.com/1307093004/diff/280001/chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm#newcode33 chrome/browser/ui/cocoa/profiles/avatar_icon_controller_unittest.mm:33: // Incognito, which is the only way to show ...
5 years, 2 months ago (2015-10-01 14:16:54 UTC) #17
Robert Sesek
cocoa/ LGTM
5 years, 2 months ago (2015-10-01 14:29:55 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1307093004/300001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1307093004/300001
5 years, 2 months ago (2015-10-02 14:24:35 UTC) #21
commit-bot: I haz the power
Committed patchset #16 (id:300001)
5 years, 2 months ago (2015-10-02 15:40:37 UTC) #22
commit-bot: I haz the power
5 years, 2 months ago (2015-10-02 15:41:19 UTC) #23
Message was sent while issue was closed.
Patchset 16 (id:??) landed as
https://crrev.com/66aa95ddaf6ddf1f731fee87f25148051d770bfa
Cr-Commit-Position: refs/heads/master@{#352041}

Powered by Google App Engine
This is Rietveld 408576698