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

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

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 <string> 9 #include <string>
9 10
10 #include "base/callback_forward.h" 11 #include "base/callback_forward.h"
11 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
12 #include "base/macros.h" 13 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/browser_list_observer.h" 16 #include "chrome/browser/ui/browser_list_observer.h"
17 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h" 17 #include "chrome/browser/ui/sync/profile_signin_confirmation_helper.h"
18 #include "chrome/browser/ui/webui/signin/login_ui_service.h" 18 #include "chrome/browser/ui/webui/signin/login_ui_service.h"
19 #include "components/signin/core/browser/signin_tracker.h" 19 #include "components/signin/core/browser/signin_tracker.h"
20 #include "content/public/browser/web_contents_observer.h" 20 #include "content/public/browser/web_contents_observer.h"
21 21
22 class Browser; 22 class Browser;
23 class ProfileSyncService; 23 class ProfileSyncService;
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // the default "You are signed in" message is displayed. 212 // the default "You are signed in" message is displayed.
213 void DisplayFinalConfirmationBubble(const base::string16& custom_message); 213 void DisplayFinalConfirmationBubble(const base::string16& custom_message);
214 214
215 void DisplayModalSyncConfirmationWindow(); 215 void DisplayModalSyncConfirmationWindow();
216 216
217 // Loads the |continue_url_| in the current tab. 217 // Loads the |continue_url_| in the current tab.
218 void LoadContinueUrl(); 218 void LoadContinueUrl();
219 219
220 Profile* profile_; 220 Profile* profile_;
221 Browser* browser_; 221 Browser* browser_;
222 scoped_ptr<SigninTracker> signin_tracker_; 222 std::unique_ptr<SigninTracker> signin_tracker_;
223 StartSyncMode start_mode_; 223 StartSyncMode start_mode_;
224 ConfirmationRequired confirmation_required_; 224 ConfirmationRequired confirmation_required_;
225 GURL current_url_; 225 GURL current_url_;
226 GURL continue_url_; 226 GURL continue_url_;
227 227
228 // Callback executed when sync setup succeeds or fails. 228 // Callback executed when sync setup succeeds or fails.
229 Callback sync_setup_completed_callback_; 229 Callback sync_setup_completed_callback_;
230 230
231 // Policy credentials we keep while determining whether to create 231 // Policy credentials we keep while determining whether to create
232 // a new profile for an enterprise user or not. 232 // a new profile for an enterprise user or not.
233 std::string dm_token_; 233 std::string dm_token_;
234 std::string client_id_; 234 std::string client_id_;
235 235
236 // This only cares about the first AccountAddedToCookie event. Since 236 // This only cares about the first AccountAddedToCookie event. Since
237 // SigninTracker always expects an observer, this object will just disregard 237 // SigninTracker always expects an observer, this object will just disregard
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