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

Unified Diff: chrome/browser/signin/chrome_signin_client.cc

Issue 205703005: Componentize SigninIdAccountHelper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to review Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.h ('k') | chrome/browser/signin/signin_account_id_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/chrome_signin_client.cc
diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
index aa5c2c2532fd80ad6de080c099ab331d67f9dd35..74e31c463354e89b7e50c4d58604d9bf52b2cb68 100644
--- a/chrome/browser/signin/chrome_signin_client.cc
+++ b/chrome/browser/signin/chrome_signin_client.cc
@@ -5,7 +5,9 @@
#include "chrome/browser/signin/chrome_signin_client.h"
#include "chrome/browser/content_settings/cookie_settings.h"
+#include "chrome/browser/signin/local_auth.h"
#include "chrome/browser/webdata/web_data_service_factory.h"
+#include "chrome/common/profile_management_switches.h"
#include "url/gurl.h"
#if defined(ENABLE_MANAGED_USERS)
@@ -74,3 +76,12 @@ bool ChromeSigninClient::CanRevokeCredentials() {
net::URLRequestContextGetter* ChromeSigninClient::GetURLRequestContext() {
return profile_->GetRequestContext();
}
+
+void ChromeSigninClient::GoogleSigninSucceeded(const std::string& username,
+ const std::string& password) {
+#if !defined(OS_ANDROID)
+ // Don't store password hash except for users of new profile features.
+ if (switches::IsNewProfileManagement())
+ chrome::SetLocalAuthCredentials(profile_, password);
+#endif
+}
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.h ('k') | chrome/browser/signin/signin_account_id_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698