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

Unified Diff: chrome/browser/shell_integration.cc

Issue 13671005: Re-apply 192420: Move login switches to src/chromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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/profiles/profile_manager_unittest.cc ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration.cc
diff --git a/chrome/browser/shell_integration.cc b/chrome/browser/shell_integration.cc
index ff0ec581cb258314dfb8036e6f4d6ba6dcc072c8..e5e9d6e81677e98ef728354dbc43f5cd00401dc2 100644
--- a/chrome/browser/shell_integration.cc
+++ b/chrome/browser/shell_integration.cc
@@ -18,6 +18,10 @@
#include "chrome/common/pref_names.h"
#include "content/public/browser/browser_thread.h"
+#if defined(OS_CHROMEOS)
+#include "chromeos/chromeos_switches.h"
+#endif
+
using content::BrowserThread;
ShellIntegration::DefaultWebClientSetPermission
@@ -81,9 +85,10 @@ CommandLine ShellIntegration::CommandLineArgsForLauncher(
}
#if defined(OS_CHROMEOS)
- base::FilePath profile = cmd_line.GetSwitchValuePath(switches::kLoginProfile);
+ base::FilePath profile = cmd_line.GetSwitchValuePath(
+ chromeos::switches::kLoginProfile);
if (!profile.empty())
- new_cmd_line.AppendSwitchPath(switches::kLoginProfile, profile);
+ new_cmd_line.AppendSwitchPath(chromeos::switches::kLoginProfile, profile);
#else
if (!profile_path.empty() && !extension_app_id.empty())
new_cmd_line.AppendSwitchPath(switches::kProfileDirectory,
« no previous file with comments | « chrome/browser/profiles/profile_manager_unittest.cc ('k') | chrome/browser/ui/ash/ash_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698