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

Side by Side Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.h

Issue 2594703002: Create a new profile and sign in the user. (Closed)
Patch Set: Rebase Created 4 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 Profile::CreateStatus status); 182 Profile::CreateStatus status);
183 183
184 // Creates the sync starter. Virtual for tests. Call to exchange oauth code 184 // Creates the sync starter. Virtual for tests. Call to exchange oauth code
185 // for tokens. 185 // for tokens.
186 virtual void CreateSyncStarter( 186 virtual void CreateSyncStarter(
187 Browser* browser, 187 Browser* browser,
188 content::WebContents* contents, 188 content::WebContents* contents,
189 const GURL& current_url, 189 const GURL& current_url,
190 const GURL& continue_url, 190 const GURL& continue_url,
191 const std::string& refresh_token, 191 const std::string& refresh_token,
192 OneClickSigninSyncStarter::ProfileMode profile_mode,
192 OneClickSigninSyncStarter::StartSyncMode start_mode, 193 OneClickSigninSyncStarter::StartSyncMode start_mode,
193 OneClickSigninSyncStarter::ConfirmationRequired confirmation_required); 194 OneClickSigninSyncStarter::ConfirmationRequired confirmation_required);
194 195
195 GaiaAuthFetcher gaia_auth_fetcher_; 196 GaiaAuthFetcher gaia_auth_fetcher_;
196 base::WeakPtr<InlineLoginHandlerImpl> handler_; 197 base::WeakPtr<InlineLoginHandlerImpl> handler_;
197 Profile* profile_; 198 Profile* profile_;
198 Profile::CreateStatus create_status_; 199 Profile::CreateStatus create_status_;
199 GURL current_url_; 200 GURL current_url_;
200 std::string email_; 201 std::string email_;
201 std::string gaia_id_; 202 std::string gaia_id_;
202 std::string password_; 203 std::string password_;
203 std::string session_index_; 204 std::string session_index_;
204 std::string auth_code_; 205 std::string auth_code_;
205 bool choose_what_to_sync_; 206 bool choose_what_to_sync_;
206 bool confirm_untrusted_signin_; 207 bool confirm_untrusted_signin_;
207 208
208 DISALLOW_COPY_AND_ASSIGN(InlineSigninHelper); 209 DISALLOW_COPY_AND_ASSIGN(InlineSigninHelper);
209 }; 210 };
210 211
211 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_ 212 #endif // CHROME_BROWSER_UI_WEBUI_SIGNIN_INLINE_LOGIN_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698