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

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

Issue 1380103004: Delay fetching account info until OnRefreshTokensLoaded(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 5 years, 2 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 bool OAuth2TokenServiceDelegate::RefreshTokenHasError( 108 bool OAuth2TokenServiceDelegate::RefreshTokenHasError(
109 const std::string& account_id) const { 109 const std::string& account_id) const {
110 return false; 110 return false;
111 } 111 }
112 112
113 std::vector<std::string> OAuth2TokenServiceDelegate::GetAccounts() { 113 std::vector<std::string> OAuth2TokenServiceDelegate::GetAccounts() {
114 return std::vector<std::string>(); 114 return std::vector<std::string>();
115 } 115 }
116
117 bool OAuth2TokenServiceDelegate::NeedsAccountIdNameMap() const {
118 return false;
119 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698