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

Unified Diff: components/signin/core/browser/signin_oauth_helper.cc

Issue 362613002: Implementation of SigninClient::GetSigninScopedDeviceId (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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: components/signin/core/browser/signin_oauth_helper.cc
diff --git a/components/signin/core/browser/signin_oauth_helper.cc b/components/signin/core/browser/signin_oauth_helper.cc
index cfe7ce74da56d96da8565152d5e56cc9cd6365ba..a5c9780bf3660b69cf79d374b3ee86703e0d0cf3 100644
--- a/components/signin/core/browser/signin_oauth_helper.cc
+++ b/components/signin/core/browser/signin_oauth_helper.cc
@@ -4,7 +4,9 @@
#include "components/signin/core/browser/signin_oauth_helper.h"
+#include "base/command_line.h"
#include "base/message_loop/message_loop.h"
+#include "components/signin/core/common/signin_switches.h"
#include "google_apis/gaia/gaia_auth_fetcher.h"
#include "google_apis/gaia/gaia_constants.h"
@@ -17,8 +19,13 @@ SigninOAuthHelper::SigninOAuthHelper(net::URLRequestContextGetter* getter,
DCHECK(consumer_);
DCHECK(getter);
DCHECK(!session_index.empty());
- gaia_auth_fetcher_.StartCookieForOAuthLoginTokenExchangeWithDeviceId(
- session_index, signin_scoped_device_id);
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableNewProfileManagement)) {
Roger Tawa OOO till Jul 10th 2014/07/01 13:42:54 Please use switches::IsNewProfileManagement() from
pavely 2014/07/01 21:41:47 Sorry, missed the line when copy pasting from swit
+ gaia_auth_fetcher_.StartCookieForOAuthLoginTokenExchangeWithDeviceId(
+ session_index, signin_scoped_device_id);
+ } else {
+ gaia_auth_fetcher_.StartCookieForOAuthLoginTokenExchange(session_index);
+ }
}
SigninOAuthHelper::~SigninOAuthHelper() {}

Powered by Google App Engine
This is Rietveld 408576698