| 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 b3983610adec0607911ab679f841cb8001556ce3..39a1bdd4f70bb35689961bf0d4ea38a1dd63c5d9 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,6 +6,7 @@
|
| #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_VIEW_CONTROLLER_H_
|
|
|
| #import <Cocoa/Cocoa.h>
|
| +#include <memory>
|
| #include <string>
|
|
|
| #include "base/callback.h"
|
| @@ -33,7 +34,7 @@ class ProfileSigninConfirmationDelegate;
|
| bool offerProfileCreation_;
|
|
|
| // Dialog button callbacks.
|
| - ui::ProfileSigninConfirmationDelegate* delegate_;
|
| + std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate_;
|
| base::Closure closeDialogCallback_;
|
|
|
| // UI elements.
|
| @@ -48,10 +49,12 @@ class ProfileSigninConfirmationDelegate;
|
| }
|
|
|
| - (id)initWithBrowser:(Browser*)browser
|
| - username:(const std::string&)username
|
| - delegate:(ui::ProfileSigninConfirmationDelegate*)delegate
|
| - closeDialogCallback:(const base::Closure&)closeDialogCallback
|
| - offerProfileCreation:(bool)offer;
|
| + username:(const std::string&)username
|
| + delegate:
|
| + (std::unique_ptr<ui::ProfileSigninConfirmationDelegate>)
|
| + delegate
|
| + closeDialogCallback:(const base::Closure&)closeDialogCallback
|
| + offerProfileCreation:(bool)offer;
|
| - (IBAction)cancel:(id)sender;
|
| - (IBAction)ok:(id)sender;
|
| - (IBAction)close:(id)sender;
|
| @@ -59,12 +62,4 @@ class ProfileSigninConfirmationDelegate;
|
|
|
| @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_H_
|
|
|