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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.h

Issue 2478173003: Lock profile before sign in when force sign in is enabled. (Closed)
Patch Set: rogerta's comments Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/signin/inline_login_handler_impl.h
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
index 6e7b3314108e3bfcef549c8236bfb0e6342fbcd4..36ec067d761e1df749c4fec78b1dbef02ef3191b 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
@@ -151,19 +151,19 @@ class InlineSigninHelper : public GaiaAuthConsumer {
CLOSE
};
- InlineSigninHelper(
- base::WeakPtr<InlineLoginHandlerImpl> handler,
- net::URLRequestContextGetter* getter,
- Profile* profile,
- const GURL& current_url,
- const std::string& email,
- const std::string& gaia_id,
- const std::string& password,
- const std::string& session_index,
- const std::string& auth_code,
- const std::string& signin_scoped_device_id,
- bool choose_what_to_sync,
- bool confirm_untrusted_signin);
+ InlineSigninHelper(base::WeakPtr<InlineLoginHandlerImpl> handler,
+ net::URLRequestContextGetter* getter,
+ Profile* profile,
+ Profile::CreateStatus create_status,
+ const GURL& current_url,
+ const std::string& email,
+ const std::string& gaia_id,
+ const std::string& password,
+ const std::string& session_index,
+ const std::string& auth_code,
+ const std::string& signin_scoped_device_id,
+ bool choose_what_to_sync,
+ bool confirm_untrusted_signin);
~InlineSigninHelper() override;
private:
@@ -189,6 +189,10 @@ class InlineSigninHelper : public GaiaAuthConsumer {
void OnClientOAuthFailure(const GoogleServiceAuthError& error)
override;
+ void OnClientOAuthSuccessAndBrowserOpened(const ClientOAuthResult& result,
+ Profile* profile,
+ Profile::CreateStatus status);
+
// Creates the sync starter. Virtual for tests. Call to exchange oauth code
// for tokens.
virtual void CreateSyncStarter(
@@ -203,6 +207,7 @@ class InlineSigninHelper : public GaiaAuthConsumer {
GaiaAuthFetcher gaia_auth_fetcher_;
base::WeakPtr<InlineLoginHandlerImpl> handler_;
Profile* profile_;
+ Profile::CreateStatus create_status_;
GURL current_url_;
std::string email_;
std::string gaia_id_;
« no previous file with comments | « chrome/browser/signin/chrome_signin_client_unittest.cc ('k') | chrome/browser/ui/webui/signin/inline_login_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698