Chromium Code Reviews| 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 ccb0abbe93f3a621b9e6970fe90fb90c7db48f9c..81d69164b624b616a6b7188b04335a3a917fdc8a 100644 |
| --- a/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| +++ b/chrome/browser/ui/cocoa/browser_window_cocoa.mm |
| @@ -486,15 +486,18 @@ 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:base::SysUTF16ToNSString( |
| + error_message) |
|
Alexei Svitkine (slow)
2013/04/23 19:43:24
This should be indented 4 more.
noms (inactive)
2013/04/24 14:49:30
Done.
|
| 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); |
| } |