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

Unified Diff: chrome/browser/android/signin/signin_manager_android.cc

Issue 131973004: Eliminate usage of PO2TS::GetPrimaryAccountID() in UbertokenFetcher. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/android/signin/signin_manager_android.cc
diff --git a/chrome/browser/android/signin/signin_manager_android.cc b/chrome/browser/android/signin/signin_manager_android.cc
index ec69c01ff0b0c576292160406a79af017730a6d3..88a42d77374d5502c07d09c1b5503de772fafc87 100644
--- a/chrome/browser/android/signin/signin_manager_android.cc
+++ b/chrome/browser/android/signin/signin_manager_android.cc
@@ -224,8 +224,10 @@ void SigninManagerAndroid::LogInSignedInUser(JNIEnv* env, jobject obj) {
// We manually login.
// AutoLogin deletes itself.
+ ProfileOAuth2TokenService* token_service =
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile_);
GoogleAutoLoginHelper* autoLogin = new GoogleAutoLoginHelper(profile_);
- autoLogin->LogIn();
+ autoLogin->LogIn(token_service->GetPrimaryAccountId());
}
}

Powered by Google App Engine
This is Rietveld 408576698