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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_chooser_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/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
index 59f80c6451c3c1b23ea75ad662049015887c73de..01ac15d3006294af21833d1e8060604c00b4fb27 100644
--- a/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/profiles/profile_chooser_controller.mm
@@ -1099,8 +1099,9 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
- (IBAction)switchToProfile:(id)sender {
// Check the event flags to see if a new window should be created.
- bool alwaysCreate = ui::WindowOpenDispositionFromNSEvent(
- [NSApp currentEvent]) == NEW_WINDOW;
+ bool alwaysCreate =
+ ui::WindowOpenDispositionFromNSEvent([NSApp currentEvent]) ==
+ WindowOpenDisposition::NEW_WINDOW;
avatarMenu_->SwitchToProfile([sender tag], alwaysCreate,
ProfileMetrics::SWITCH_PROFILE_ICON);
}

Powered by Google App Engine
This is Rietveld 408576698