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

Side by Side Diff: google_apis/gaia/oauth2_token_service_delegate.cc

Issue 1267843003: Fix reconcilor loop when the primary account is in an auth error state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 5 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/profiler/scoped_tracker.h" 5 #include "base/profiler/scoped_tracker.h"
6 #include "google_apis/gaia/oauth2_token_service.h" 6 #include "google_apis/gaia/oauth2_token_service.h"
7 #include "google_apis/gaia/oauth2_token_service_delegate.h" 7 #include "google_apis/gaia/oauth2_token_service_delegate.h"
8 8
9 OAuth2TokenServiceDelegate::ScopedBatchChange::ScopedBatchChange( 9 OAuth2TokenServiceDelegate::ScopedBatchChange::ScopedBatchChange(
10 OAuth2TokenServiceDelegate* delegate) 10 OAuth2TokenServiceDelegate* delegate)
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 88
89 FOR_EACH_OBSERVER(OAuth2TokenService::Observer, observer_list_, 89 FOR_EACH_OBSERVER(OAuth2TokenService::Observer, observer_list_,
90 OnRefreshTokensLoaded()); 90 OnRefreshTokensLoaded());
91 } 91 }
92 92
93 net::URLRequestContextGetter* OAuth2TokenServiceDelegate::GetRequestContext() 93 net::URLRequestContextGetter* OAuth2TokenServiceDelegate::GetRequestContext()
94 const { 94 const {
95 return nullptr; 95 return nullptr;
96 } 96 }
97 97
98 bool OAuth2TokenServiceDelegate::RefreshTokenHasError(
99 const std::string& account_id) const {
100 return false;
101 }
102
98 std::vector<std::string> OAuth2TokenServiceDelegate::GetAccounts() { 103 std::vector<std::string> OAuth2TokenServiceDelegate::GetAccounts() {
99 return std::vector<std::string>(); 104 return std::vector<std::string>();
100 } 105 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698