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

Unified Diff: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm

Issue 2248873002: Convert WindowOpenDisposition to an enum class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
index 48afe7881b69f169867fe4e969ff88fb9f931fac..1b3086c197c70936e4351d93bf7128173431b31c 100644
--- a/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/avatar_menu_bubble_controller.mm
@@ -91,8 +91,9 @@ const CGFloat kSupervisedUserSpacing = 26.0;
- (IBAction)switchToProfile:(id)sender {
// Check the event flags to see if a new window should be crated.
- bool always_create = ui::WindowOpenDispositionFromNSEvent(
- [NSApp currentEvent]) == NEW_WINDOW;
+ bool always_create =
+ ui::WindowOpenDispositionFromNSEvent([NSApp currentEvent]) ==
+ WindowOpenDisposition::NEW_WINDOW;
menu_->SwitchToProfile([sender menuIndex], always_create,
ProfileMetrics::SWITCH_PROFILE_ICON);
}

Powered by Google App Engine
This is Rietveld 408576698