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

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

Issue 372033002: Change semantics of newProfileManagement() to accountConsistency() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix profile_chooser_controller_test 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 | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/signin_tracker_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_header_helper.cc
diff --git a/chrome/browser/signin/signin_header_helper.cc b/chrome/browser/signin/signin_header_helper.cc
index b2c889151b35fe2bf886071deb18050d7b98ba83..134a0173b158bcd85e4905be8c685a73d83bae95 100644
--- a/chrome/browser/signin/signin_header_helper.cc
+++ b/chrome/browser/signin/signin_header_helper.cc
@@ -206,10 +206,10 @@ bool AppendMirrorRequestHeaderIfPossible(
// available.
const GURL& url = redirect_url.is_empty() ? request->url() : redirect_url;
GURL origin(url.GetOrigin());
- bool is_new_profile_management = switches::IsNewProfileManagement();
+ bool is_enable_account_consistency = switches::IsEnableAccountConsistency();
bool is_google_url =
!switches::IsEnableWebBasedSignin() &&
- is_new_profile_management &&
+ is_enable_account_consistency &&
(google_util::IsGoogleDomainUrl(
url,
google_util::ALLOW_SUBDOMAIN,
@@ -235,7 +235,7 @@ bool AppendMirrorRequestHeaderIfPossible(
kGaiaIdAttrName, account_id.c_str(),
kProfileModeAttrName, base::IntToString(profile_mode_mask).c_str(),
kEnableAccountConsistencyAttrName,
- is_new_profile_management ? "true" : "false"));
+ is_enable_account_consistency ? "true" : "false"));
request->SetExtraRequestHeaderByName(
kChromeConnectedHeader, header_value, false);
return true;
@@ -259,7 +259,7 @@ void ProcessMirrorResponseHeaderIfExists(
return;
}
- DCHECK(switches::IsNewProfileManagement() && !io_data->IsOffTheRecord());
+ DCHECK(switches::IsEnableAccountConsistency() && !io_data->IsOffTheRecord());
ManageAccountsParams params(BuildManageAccountsParams(header_value));
if (params.service_type == GAIA_SERVICE_TYPE_NONE)
return;
« no previous file with comments | « chrome/browser/signin/chrome_signin_client.cc ('k') | chrome/browser/signin/signin_tracker_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698