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

Unified Diff: chrome/browser/chromeos/login/login_performer.cc

Issue 8586007: Made OAuth token verification and user seession cookie retrieval process robust on transient netw... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month 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/chromeos/login/login_performer.cc
===================================================================
--- chrome/browser/chromeos/login/login_performer.cc (revision 110566)
+++ chrome/browser/chromeos/login/login_performer.cc (working copy)
@@ -54,8 +54,6 @@
initial_online_auth_pending_(false),
auth_mode_(AUTH_MODE_INTERNAL),
using_oauth_(
- CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kWebUILogin) &&
!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSkipOAuthLogin)),
weak_factory_(this) {
@@ -176,14 +174,9 @@
return;
}
- if (!using_oauth_) {
- // Fetch cookies, tokens for the loaded profile only if authentication
- // was performed via ClientLogin. We don't need this in the case when
- // we use extension + OAuth1 access token check flow.
- LoginUtils::Get()->FetchCookies(profile, credentials_);
- } else {
+ if (using_oauth_)
LoginUtils::Get()->StartTokenServices(profile);
- }
+
LoginUtils::Get()->StartSync(profile, credentials_);
credentials_ = GaiaAuthConsumer::ClientLoginResult();
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/login_utils.h » ('j') | chrome/browser/chromeos/login/login_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698