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

Unified Diff: chrome/browser/sync/sync_setup_wizard.cc

Issue 7497069: Support Sync following Gaia OAuth authentication (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Final review comments Created 9 years, 4 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 | « chrome/browser/sync/signin_manager.cc ('k') | chrome/browser/sync/util/oauth.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_setup_wizard.cc
diff --git a/chrome/browser/sync/sync_setup_wizard.cc b/chrome/browser/sync/sync_setup_wizard.cc
index 61113fdf962a9c91d0d5daebf42573de46f48bc8..23698b8d99a3d8108af2cd0dd15e2bd759bf97c0 100644
--- a/chrome/browser/sync/sync_setup_wizard.cc
+++ b/chrome/browser/sync/sync_setup_wizard.cc
@@ -12,6 +12,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sync/sync_setup_flow.h"
+#include "chrome/browser/sync/util/oauth.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -93,9 +94,9 @@ bool SyncSetupWizard::IsVisible() const {
// static
SyncSetupWizard::State SyncSetupWizard::GetLoginState() {
- if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableSyncOAuth))
- return SyncSetupWizard::OAUTH_LOGIN;
- return SyncSetupWizard::GAIA_LOGIN;
+ return browser_sync::IsUsingOAuth() ?
+ SyncSetupWizard::OAUTH_LOGIN :
+ SyncSetupWizard::GAIA_LOGIN;
}
void SyncSetupWizard::Focus() {
« no previous file with comments | « chrome/browser/sync/signin_manager.cc ('k') | chrome/browser/sync/util/oauth.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698