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

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

Issue 964563002: Replace SetAuthenticatedUsername with SetAuthenticatedAccountId. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@priv
Patch Set: rebased Created 5 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 <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // signin before signin completes. 87 // signin before signin completes.
88 // |web_contents| is used to show the sync UI if it's showing a blank page 88 // |web_contents| is used to show the sync UI if it's showing a blank page
89 // and not about to be closed. It can be NULL. 89 // and not about to be closed. It can be NULL.
90 // If |web_contents| is non-NULL and the |continue_url| is non-empty, the 90 // If |web_contents| is non-NULL and the |continue_url| is non-empty, the
91 // |web_contents| will be navigated to the |continue_url| once both signin and 91 // |web_contents| will be navigated to the |continue_url| once both signin and
92 // Sync setup are complete. 92 // Sync setup are complete.
93 // |callback| is always executed before OneClickSigninSyncStarter is deleted. 93 // |callback| is always executed before OneClickSigninSyncStarter is deleted.
94 // It can be empty. 94 // It can be empty.
95 OneClickSigninSyncStarter(Profile* profile, 95 OneClickSigninSyncStarter(Profile* profile,
96 Browser* browser, 96 Browser* browser,
97 const std::string& gaia_id,
97 const std::string& email, 98 const std::string& email,
98 const std::string& password, 99 const std::string& password,
99 const std::string& refresh_token, 100 const std::string& refresh_token,
100 StartSyncMode start_mode, 101 StartSyncMode start_mode,
101 content::WebContents* web_contents, 102 content::WebContents* web_contents,
102 ConfirmationRequired display_confirmation, 103 ConfirmationRequired display_confirmation,
103 const GURL& continue_url, 104 const GURL& continue_url,
104 Callback callback); 105 Callback callback);
105 106
106 // chrome::BrowserListObserver override. 107 // chrome::BrowserListObserver override.
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 std::string client_id_; 237 std::string client_id_;
237 #endif 238 #endif
238 239
239 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; 240 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_;
240 241
241 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); 242 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter);
242 }; 243 };
243 244
244 245
245 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ 246 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698