diff options
Diffstat (limited to 'chrome/browser/managed_mode/managed_user_service.cc')
-rw-r--r-- | chrome/browser/managed_mode/managed_user_service.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/chrome/browser/managed_mode/managed_user_service.cc b/chrome/browser/managed_mode/managed_user_service.cc index e6e07ba..8a06b7e 100644 --- a/chrome/browser/managed_mode/managed_user_service.cc +++ b/chrome/browser/managed_mode/managed_user_service.cc @@ -542,10 +542,7 @@ void ManagedUserService::OnManagedUserRegistered( Profile* custodian_profile, const GoogleServiceAuthError& auth_error, const std::string& token) { - if (auth_error.state() == GoogleServiceAuthError::REQUEST_CANCELED) { - callback.Run(profile_, Profile::CREATE_STATUS_CANCELED); - return; - } else if (auth_error.state() != GoogleServiceAuthError::NONE) { + if (auth_error.state() != GoogleServiceAuthError::NONE) { LOG(ERROR) << "Managed user OAuth error: " << auth_error.ToString(); DCHECK_EQ(std::string(), token); callback.Run(profile_, Profile::CREATE_STATUS_REMOTE_FAIL); |