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

Unified Diff: chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm

Issue 216523005: show avatar bubble in edit mode on mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits fixed Created 6 years, 9 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/browser/profile_chooser_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
index 9a3e5b4cdd292d32d703bed1250fabeabb05ef12..a31c9be93c4a0be77fbbdea7900426c9787ac4c1 100644
--- a/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
+++ b/chrome/browser/ui/cocoa/browser/profile_chooser_controller.mm
@@ -655,7 +655,9 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
webContents_.reset();
}
-- (id)initWithBrowser:(Browser*)browser anchoredAt:(NSPoint)point {
+- (id)initWithBrowser:(Browser*)browser
+ anchoredAt:(NSPoint)point
+ withMode:(BubbleViewMode)mode {
base::scoped_nsobject<InfoBubbleWindow> window([[InfoBubbleWindow alloc]
initWithContentRect:ui::kWindowSizeDeterminedLater
styleMask:NSBorderlessWindowMask
@@ -666,7 +668,7 @@ class ActiveProfileObserverBridge : public AvatarMenuObserver,
parentWindow:browser->window()->GetNativeWindow()
anchoredAt:point])) {
browser_ = browser;
- viewMode_ = PROFILE_CHOOSER_VIEW;
+ viewMode_ = mode;
tutorialShowing_ = false;
observer_.reset(new ActiveProfileObserverBridge(self, browser_));

Powered by Google App Engine
This is Rietveld 408576698