| 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
|
| +}
|
|
|