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

Unified Diff: chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h

Issue 2625813003: MacViews: Allow the toolkit-views Enterprise Signin Confirmation Dialog to be used (Closed)
Patch Set: Rebase (DID NOT LAND) 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/views/sync/profile_signin_confirmation_dialog_views.h
diff --git a/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h b/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h
index ffa5f5792f24a509871a0f78512dc49a6a6bfe4f..a466abdbf426a2318be87bda6d0d6ff4d2bd0543 100644
--- a/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h
+++ b/chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.h
@@ -5,6 +5,8 @@
#ifndef CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_
#define CHROME_BROWSER_UI_VIEWS_SYNC_PROFILE_SIGNIN_CONFIRMATION_DIALOG_VIEWS_H_
+#include <memory>
+
#include "base/compiler_specific.h"
#include "base/macros.h"
#include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h"
@@ -23,16 +25,17 @@ class ProfileSigninConfirmationDialogViews : public views::DialogDelegateView,
public views::ButtonListener {
public:
// Create and show the dialog, which owns itself.
- static void ShowDialog(Browser* browser,
- Profile* profile,
- const std::string& username,
- ui::ProfileSigninConfirmationDelegate* delegate);
+ static void ShowDialog(
+ Browser* browser,
+ Profile* profile,
+ const std::string& username,
+ std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate);
private:
ProfileSigninConfirmationDialogViews(
Browser* browser,
const std::string& username,
- ui::ProfileSigninConfirmationDelegate* delegate);
+ std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate);
~ProfileSigninConfirmationDialogViews() override;
// views::DialogDelegateView:
@@ -69,7 +72,7 @@ class ProfileSigninConfirmationDialogViews : public views::DialogDelegateView,
std::string username_;
// Dialog button handler.
- ui::ProfileSigninConfirmationDelegate* delegate_;
+ std::unique_ptr<ui::ProfileSigninConfirmationDelegate> delegate_;
// Whether the user should be prompted to create a new profile.
bool prompt_for_new_profile_;
« no previous file with comments | « chrome/browser/ui/tab_dialogs.h ('k') | chrome/browser/ui/views/sync/profile_signin_confirmation_dialog_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698