| Index: chrome/browser/ui/cocoa/one_click_signin_view_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/one_click_signin_view_controller.h b/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
|
| index c3d2ae76279f84e6ac9675d2447563b4cf4ddc67..9f15334fd494d6dd2be389917e0fb31a564bf55b 100644
|
| --- a/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
|
| +++ b/chrome/browser/ui/cocoa/one_click_signin_view_controller.h
|
| @@ -25,6 +25,9 @@ class WebContents;
|
| IBOutlet NSButton* advancedLink_;
|
| IBOutlet NSButton* closeButton_;
|
|
|
| + BOOL isSyncDialog_;
|
| + scoped_nsobject<NSString> errorMessage_;
|
| +
|
| // Text fields don't work as well with embedded links as text views, but
|
| // text views cannot conveniently be created in IB. The xib file contains
|
| // a text field |informativePlaceholderTextField_| that's replaced by this
|
| @@ -35,10 +38,17 @@ class WebContents;
|
| content::WebContents* webContents_;
|
| }
|
|
|
| +// Initializes the controller from a nib file, with an alternate |errorMessage|
|
| +// that can be displayed in the case of an authentication error,
|
| +// |syncCallback| is called to start sync if |isSyncDialog| is YES,
|
| +// |webContents| is used to open the Learn More and Advanced links and
|
| +// |callback| is called when the view is closing.
|
| - (id)initWithNibName:(NSString*)nibName
|
| webContents:(content::WebContents*)webContents
|
| syncCallback:(const BrowserWindow::StartSyncCallback&)syncCallback
|
| - closeCallback:(const base::Closure&)callback;
|
| + closeCallback:(const base::Closure&)callback
|
| + isSyncDialog:(BOOL)isSyncDialog
|
| + errorMessage:(NSString*)errorMessage;
|
|
|
| // Called before the view is closed.
|
| - (void)viewWillClose;
|
|
|