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_; |