| Index: chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h
|
| diff --git a/chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h b/chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h
|
| index 8e4a35c5e257a7cc424c8c7a0e3d76954f2e4a6e..2a70b08efcfb70a1a10330beee54ed778926d707 100644
|
| --- a/chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h
|
| +++ b/chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h
|
| @@ -6,7 +6,6 @@
|
| #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_VIEW_CONTROLLER_
|
|
|
| #import <Cocoa/Cocoa.h>
|
| -#include <memory>
|
| #include <string>
|
|
|
| #include "base/callback.h"
|
| @@ -34,7 +33,7 @@
|
| bool offerProfileCreation_;
|
|
|
| // Dialog button callbacks.
|
| - std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate_;
|
| + ui::ProfileSigninConfirmationDelegate* delegate_;
|
| base::Closure closeDialogCallback_;
|
|
|
| // UI elements.
|
| @@ -49,12 +48,10 @@
|
| }
|
|
|
| - (id)initWithBrowser:(Browser*)browser
|
| - username:(const std::string&)username
|
| - delegate:
|
| - (std::unique_ptr<ui::ProfileSigninConfirmationDelegate>)
|
| - delegate
|
| - closeDialogCallback:(const base::Closure&)closeDialogCallback
|
| - offerProfileCreation:(bool)offer;
|
| + username:(const std::string&)username
|
| + delegate:(ui::ProfileSigninConfirmationDelegate*)delegate
|
| + closeDialogCallback:(const base::Closure&)closeDialogCallback
|
| + offerProfileCreation:(bool)offer;
|
| - (IBAction)cancel:(id)sender;
|
| - (IBAction)ok:(id)sender;
|
| - (IBAction)close:(id)sender;
|
| @@ -62,4 +59,12 @@
|
|
|
| @end
|
|
|
| +@interface ProfileSigninConfirmationViewController (TestingAPI)
|
| +
|
| +@property(readonly, nonatomic) ui::ProfileSigninConfirmationDelegate* delegate;
|
| +@property(readonly, nonatomic) NSButton* createProfileButton;
|
| +@property(readonly, nonatomic) NSTextView* explanationField;
|
| +
|
| +@end
|
| +
|
| #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_VIEW_CONTROLLER_
|
|
|