Index: chrome/browser/ui/cocoa/browser_window_cocoa.mm |
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
index c48942b9e3aedc8aa47c6b6261a46a2c56c7247f..d8371141394f22a87ae71701376c0672124509ba 100644 |
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
@@ -47,6 +47,10 @@ |
#include "ui/base/l10n/l10n_util_mac.h" |
#include "ui/gfx/rect.h" |
+#if defined(ENABLE_ONE_CLICK_SIGNIN) |
+#import "chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h" |
+#endif |
+ |
using content::SSLStatus; |
using content::WebContents; |
@@ -450,8 +454,16 @@ void BrowserWindowCocoa::ShowChromeToMobileBubble() { |
} |
#if defined(ENABLE_ONE_CLICK_SIGNIN) |
-void BrowserWindowCocoa::ShowOneClickSigninBubble() { |
- NOTIMPLEMENTED(); |
+ |
+void BrowserWindowCocoa::ShowOneClickSigninBubble( |
+ const base::Closure& learn_more_callback, |
+ const base::Closure& advanced_callback) { |
+ OneClickSigninBubbleController* bubble_controller = |
+ [[OneClickSigninBubbleController alloc] |
+ initWithBrowserWindowController:cocoa_controller() |
+ learnMoreCallback:learn_more_callback |
+ advancedCallback:advanced_callback]; |
+ [bubble_controller showWindow:nil]; |
} |
#endif |