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

Unified Diff: chrome/browser/signin/chrome_signin_client.cc

Issue 437013002: Make signin_scoped_device_id enabled by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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/common/signin_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/chrome_signin_client.cc
diff --git a/chrome/browser/signin/chrome_signin_client.cc b/chrome/browser/signin/chrome_signin_client.cc
index f72006c9ba53060d4c552783a2e4f273ab382c48..c533ab3f3558e7d25497f4ab2ba86965efe434e1 100644
--- a/chrome/browser/signin/chrome_signin_client.cc
+++ b/chrome/browser/signin/chrome_signin_client.cc
@@ -133,11 +133,14 @@ bool ChromeSigninClient::CanRevokeCredentials() {
}
std::string ChromeSigninClient::GetSigninScopedDeviceId() {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kDisableSigninScopedDeviceId)) {
+ return std::string();
+ }
+
std::string signin_scoped_device_id =
GetPrefs()->GetString(prefs::kGoogleServicesSigninScopedDeviceId);
- if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableSigninScopedDeviceId) &&
- signin_scoped_device_id.empty()) {
+ if (signin_scoped_device_id.empty()) {
// If device_id doesn't exist then generate new and save in prefs.
signin_scoped_device_id = base::GenerateGUID();
DCHECK(!signin_scoped_device_id.empty());
« no previous file with comments | « no previous file | components/signin/core/common/signin_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698