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

Unified Diff: chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc

Issue 1129463004: Let Ubertoken Fetch be primed with an access token. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 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
« no previous file with comments | « no previous file | components/signin/core/browser/gaia_cookie_manager_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
diff --git a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
index a9dbd356fb5924e588b6b4393a3704f2cc0d9c47..574cd8f30e34179916c0aa0c5f0fabf77f10fdf4 100644
--- a/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
+++ b/chrome/browser/chromeos/login/signin/oauth2_login_verifier.cc
@@ -52,10 +52,8 @@ void OAuth2LoginVerifier::VerifyUserCookies(Profile* profile) {
void OAuth2LoginVerifier::VerifyProfileTokens(Profile* profile) {
DCHECK_CURRENTLY_ON(BrowserThread::UI);
-
- // TODO(xiyuan,mlerman): Use |access_token_| to cut down one round trip.
- // See http://crbug.com/483596
- cookie_manager_service_->AddAccountToCookie(primary_account_id_);
+ cookie_manager_service_->AddAccountToCookieWithToken(primary_account_id_,
+ access_token_);
xiyuan 2015/05/19 20:15:30 Sorry, missed this. |access_token_| could be empt
Mike Lerman 2015/05/20 15:33:07 Ah, I thought there always was one. Thanks! Done.
}
void OAuth2LoginVerifier::OnAddAccountToCookieCompleted(
« no previous file with comments | « no previous file | components/signin/core/browser/gaia_cookie_manager_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698