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

Unified Diff: chrome/browser/ui/autologin_infobar_delegate.cc

Issue 7600003: Pre- and Auto-login should not log the user out of an already signed in (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Add test source code file to CL 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
Index: chrome/browser/ui/autologin_infobar_delegate.cc
===================================================================
--- chrome/browser/ui/autologin_infobar_delegate.cc (revision 96549)
+++ chrome/browser/ui/autologin_infobar_delegate.cc (working copy)
@@ -52,9 +52,9 @@
const NotificationSource& source,
const NotificationDetails& details) OVERRIDE;
- // Redirect tab to TokenAuth URL, logging the user in and navigating
+ // Redirect tab to MergeSession URL, logging the user in and navigating
// to the desired page.
- void RedirectToTokenAuth(const std::string& token);
+ void RedirectToMergeSession(const std::string& token);
TabContentsWrapper* tab_contents_wrapper_;
const std::string args_;
@@ -95,7 +95,7 @@
Details<TokenService::TokenAvailableDetails>(details).ptr();
if (tok_details->service() == GaiaConstants::kGaiaService) {
- RedirectToTokenAuth(tok_details->token());
+ RedirectToMergeSession(tok_details->token());
delete this;
return;
}
@@ -111,7 +111,7 @@
}
}
-void AutoLoginRedirector::RedirectToTokenAuth(const std::string& token) {
+void AutoLoginRedirector::RedirectToMergeSession(const std::string& token) {
// The args are URL encoded, so we need to decode them before use.
url_canon::RawCanonOutputT<char16> output;
url_util::DecodeURLEscapeSequences(args_.c_str(), args_.length(), &output);
@@ -120,9 +120,9 @@
const char kUrlFormat[] = "%s?"
"source=chrome&"
- "auth=%s&"
+ "uberauth=%s&"
"%s";
- const std::string url_string = GaiaUrls::GetInstance()->token_auth_url();
+ const std::string url_string = GaiaUrls::GetInstance()->merge_session_url();
std::string url = base::StringPrintf(kUrlFormat,
url_string.c_str(),
token.c_str(),

Powered by Google App Engine
This is Rietveld 408576698