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

Unified Diff: chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_controller.h

Issue 2632123003: Revert of MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used (Closed)
Patch Set: Created 3 years, 11 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/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_

Powered by Google App Engine
This is Rietveld 408576698