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

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

Issue 305103006: Update the string for gaia incognito header (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: histogram xml updated Created 6 years, 7 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/signin_header_helper.h ('k') | tools/metrics/histograms/histograms.xml » ('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 8b958a0a583c3af7a97764c660858548b63663ce..fa31489d45543181815f5eba4f874b44a3f55aad 100644
--- a/chrome/browser/signin/signin_header_helper.cc
+++ b/chrome/browser/signin/signin_header_helper.cc
@@ -39,8 +39,8 @@ signin::GAIAServiceType GetGAIAServiceTypeFromHeader(
const std::string& header_value) {
if (header_value == "SIGNOUT")
return signin::GAIA_SERVICE_TYPE_SIGNOUT;
- else if (header_value == "SIGNOUTOPTIONS_INCOGNITO")
- return signin::GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO;
+ else if (header_value == "INCOGNITO")
+ return signin::GAIA_SERVICE_TYPE_INCOGNITO;
else if (header_value == "ADDSESSION")
return signin::GAIA_SERVICE_TYPE_ADDSESSION;
else if (header_value == "REAUTH")
@@ -69,7 +69,7 @@ void ProcessMirrorHeaderUIThread(
#if !defined(OS_ANDROID)
Browser* browser = chrome::FindBrowserWithWebContents(web_contents);
if (browser) {
- if (service_type == signin::GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO) {
+ if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) {
chrome::NewIncognitoWindow(browser);
} else {
browser->window()->ShowAvatarBubbleFromAvatarButton(
@@ -78,7 +78,7 @@ void ProcessMirrorHeaderUIThread(
}
}
#else // defined(OS_ANDROID)
- if (service_type == signin::GAIA_SERVICE_TYPE_SIGNOUTOPTIONS_INCOGNITO) {
+ if (service_type == signin::GAIA_SERVICE_TYPE_INCOGNITO) {
web_contents->OpenURL(content::OpenURLParams(
GURL(chrome::kChromeUINativeNewTabURL), content::Referrer(),
OFF_THE_RECORD, content::PAGE_TRANSITION_AUTO_TOPLEVEL, false));
« no previous file with comments | « chrome/browser/signin/signin_header_helper.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698