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

Unified Diff: chrome/browser/signin/token_service.cc

Issue 16290004: Update chrome/ to use scoped_refptr<T>::get() rather than implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
Index: chrome/browser/signin/token_service.cc
diff --git a/chrome/browser/signin/token_service.cc b/chrome/browser/signin/token_service.cc
index 93645e0e27bbd7adcc04bb14ccfa3c16733f012e..33ef34291822cddedf2c1996d97399234bcb1ce8 100644
--- a/chrome/browser/signin/token_service.cc
+++ b/chrome/browser/signin/token_service.cc
@@ -122,7 +122,7 @@ void TokenService::AddAuthTokenManually(const std::string& service,
CHECK_GE(index, 0);
// iOS fetches the service tokens outside of the TokenService.
if (!fetchers_[index].get()) {
- fetchers_[index].reset(new GaiaAuthFetcher(this, source_, getter_));
+ fetchers_[index].reset(new GaiaAuthFetcher(this, source_, getter_.get()));
}
fetchers_[index]->StartLsoForOAuthLoginTokenExchange(auth_token);
}
@@ -227,10 +227,9 @@ void TokenService::StartFetchingTokens() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
DCHECK(AreCredentialsValid());
for (size_t i = 0; i < arraysize(kServices); i++) {
- fetchers_[i].reset(new GaiaAuthFetcher(this, source_, getter_));
- fetchers_[i]->StartIssueAuthToken(credentials_.sid,
- credentials_.lsid,
- kServices[i]);
+ fetchers_[i].reset(new GaiaAuthFetcher(this, source_, getter_.get()));
+ fetchers_[i]->StartIssueAuthToken(
+ credentials_.sid, credentials_.lsid, kServices[i]);
}
}
« no previous file with comments | « chrome/browser/signin/signin_manager_cookie_helper.cc ('k') | chrome/browser/speech/chrome_speech_recognition_preferences.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698