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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.h

Issue 1868273002: Enhanced Sync Confirmation modal (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed Dan's comments + rebase Created 4 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // be used to re-initialize the object to refer to a newly created profile. 125 // be used to re-initialize the object to refer to a newly created profile.
126 void Initialize(Profile* profile, Browser* browser); 126 void Initialize(Profile* profile, Browser* browser);
127 127
128 // SigninTracker::Observer override. 128 // SigninTracker::Observer override.
129 void SigninFailed(const GoogleServiceAuthError& error) override; 129 void SigninFailed(const GoogleServiceAuthError& error) override;
130 void SigninSuccess() override; 130 void SigninSuccess() override;
131 void AccountAddedToCookie(const GoogleServiceAuthError& error) override; 131 void AccountAddedToCookie(const GoogleServiceAuthError& error) override;
132 132
133 // LoginUIService::Observer override. 133 // LoginUIService::Observer override.
134 void OnSyncConfirmationUIClosed( 134 void OnSyncConfirmationUIClosed(
135 LoginUIService::SyncConfirmationUIClosedResults results) override; 135 LoginUIService::SyncConfirmationUIClosedResult result) override;
136 136
137 // User input handler for the signin confirmation dialog. 137 // User input handler for the signin confirmation dialog.
138 class SigninDialogDelegate 138 class SigninDialogDelegate
139 : public ui::ProfileSigninConfirmationDelegate { 139 : public ui::ProfileSigninConfirmationDelegate {
140 public: 140 public:
141 SigninDialogDelegate( 141 SigninDialogDelegate(
142 base::WeakPtr<OneClickSigninSyncStarter> sync_starter); 142 base::WeakPtr<OneClickSigninSyncStarter> sync_starter);
143 virtual ~SigninDialogDelegate(); 143 virtual ~SigninDialogDelegate();
144 void OnCancelSignin() override; 144 void OnCancelSignin() override;
145 void OnContinueSignin() override; 145 void OnContinueSignin() override;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // following AccountAddedToCookie calls triggered by account reconciliation. 238 // following AccountAddedToCookie calls triggered by account reconciliation.
239 bool first_account_added_to_cookie_; 239 bool first_account_added_to_cookie_;
240 240
241 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; 241 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_;
242 242
243 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); 243 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter);
244 }; 244 };
245 245
246 246
247 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ 247 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698