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

Unified Diff: components/signin/core/browser/mutable_profile_oauth2_token_service.cc

Issue 489113003: Remove MutableProfileOAuth2TokenService on iOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove DCHECK(getter). Created 6 years, 4 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 | « components/signin.gypi ('k') | components/signin/ios/browser/profile_oauth2_token_service_ios.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/signin/core/browser/mutable_profile_oauth2_token_service.cc
diff --git a/components/signin/core/browser/mutable_profile_oauth2_token_service.cc b/components/signin/core/browser/mutable_profile_oauth2_token_service.cc
index d62a30d9041f149761c4272cdfc481562a5a6473..a9e4442911008541480af2cf26eaabcb3ca43aa2 100644
--- a/components/signin/core/browser/mutable_profile_oauth2_token_service.cc
+++ b/components/signin/core/browser/mutable_profile_oauth2_token_service.cc
@@ -270,16 +270,6 @@ void MutableProfileOAuth2TokenService::UpdateAuthError(
error.state() == GoogleServiceAuthError::SERVICE_UNAVAILABLE)
return;
-#if defined(OS_IOS)
- // ProfileOauth2TokenService does not manage the refresh tokens on iOS - the
- // account info on iOS is only used to manage the authentication error state.
- // Simply add an account info entry with empty refresh token if none exists.
- if (refresh_tokens_.count(account_id) == 0) {
- refresh_tokens_[account_id].reset(
- new AccountInfo(this, account_id, std::string()));
- }
-#endif
-
if (refresh_tokens_.count(account_id) == 0) {
// This could happen if the preferences have been corrupted (see
// http://crbug.com/321370). In a Debug build that would be a bug, but in a
« no previous file with comments | « components/signin.gypi ('k') | components/signin/ios/browser/profile_oauth2_token_service_ios.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698