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

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

Issue 13845022: Mac: Display a native bubble (instead of the JS one) after the web signin flow. (branched from http… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ntpBubble
Patch Set: Fix bot issues Created 7 years, 8 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_window_cocoa.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_cocoa.mm b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
index 7187d47dc475a09157e310e6aeb27c50bc96efe0..6e6a6b9247c3e43594d413035aad860ed25e2e2d 100644
--- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm
+++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm
@@ -482,15 +482,17 @@ void BrowserWindowCocoa::ShowOneClickSigninBubble(
const string16& email,
const string16& error_message,
const StartSyncCallback& start_sync_callback) {
+ WebContents* web_contents =
+ browser_->tab_strip_model()->GetActiveWebContents();
if (type == ONE_CLICK_SIGNIN_BUBBLE_TYPE_BUBBLE) {
scoped_nsobject<OneClickSigninBubbleController> bubble_controller(
[[OneClickSigninBubbleController alloc]
initWithBrowserWindowController:cocoa_controller()
+ webContents:web_contents
+ errorMessage:error_message
callback:start_sync_callback]);
[bubble_controller showWindow:nil];
} else {
- WebContents* web_contents =
- browser_->tab_strip_model()->GetActiveWebContents();
// Deletes itself when the dialog closes.
new OneClickSigninDialogController(web_contents, start_sync_callback);
}

Powered by Google App Engine
This is Rietveld 408576698