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

Unified Diff: chrome/browser/chromeos/login/login_utils.cc

Issue 6602010: Added "--login-user=" option for the Guest session. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/chromeos/login
Patch Set: merge Created 9 years, 10 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 | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/login_utils.cc
diff --git a/chrome/browser/chromeos/login/login_utils.cc b/chrome/browser/chromeos/login/login_utils.cc
index 342cd5fff8b7879aee38dfe03c31cffac60ea82f..5aa016ca222d033e7d562293b60835a9294ca925 100644
--- a/chrome/browser/chromeos/login/login_utils.cc
+++ b/chrome/browser/chromeos/login/login_utils.cc
@@ -72,6 +72,9 @@ const char kGuestModeLoggingLevel[] = "1";
// Format of command line switch.
const char kSwitchFormatString[] = " --%s=\"%s\"";
+// User name which is used in the Guest session.
+const char kGuestUserName[] = "";
+
// Resets the proxy configuration service for the default request context.
class ResetDefaultProxyConfigServiceTask : public Task {
public:
@@ -424,6 +427,8 @@ std::string LoginUtilsImpl::GetOffTheRecordCommandLine(
command_line->AppendSwitchASCII(switches::kLoggingLevel,
kGuestModeLoggingLevel);
+ command_line->AppendSwitchASCII(switches::kLoginUser, kGuestUserName);
+
if (start_url.is_valid())
command_line->AppendArg(start_url.spec());
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698