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

Unified Diff: chrome/app/chrome_dll_main.cc

Issue 270062: Use ASCII strings for switch names. (Closed)
Patch Set: victory Created 11 years, 2 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 | « base/test/test_suite.h ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/chrome_dll_main.cc
diff --git a/chrome/app/chrome_dll_main.cc b/chrome/app/chrome_dll_main.cc
index ff9464ab1a8a0ca4b243aef9fb0a7806f46566da..4df3961a4f6eea2aedaa0ee516ac4e6fe96c8a55 100644
--- a/chrome/app/chrome_dll_main.cc
+++ b/chrome/app/chrome_dll_main.cc
@@ -346,8 +346,8 @@ int ChromeMain(int argc, char** argv) {
#endif
const CommandLine& parsed_command_line = *CommandLine::ForCurrentProcess();
- std::wstring process_type =
- parsed_command_line.GetSwitchValue(switches::kProcessType);
+ std::string process_type =
+ parsed_command_line.GetSwitchValueASCII(switches::kProcessType);
#if defined(OS_MACOSX)
mac_util::SetOverrideAppBundlePath(chrome::GetFrameworkBundlePath());
@@ -361,8 +361,8 @@ int ChromeMain(int argc, char** argv) {
#if defined(OS_LINUX)
// Show the man page on --help or -h.
- if (parsed_command_line.HasSwitch(L"help") ||
- parsed_command_line.HasSwitch(L"h")) {
+ if (parsed_command_line.HasSwitch("help") ||
+ parsed_command_line.HasSwitch("h")) {
FilePath binary(parsed_command_line.argv()[0]);
int ret = execlp("man", "man", binary.BaseName().value().c_str(), NULL);
LOG(FATAL) << "execlp failed: " << strerror(ret);
« no previous file with comments | « base/test/test_suite.h ('k') | chrome/browser/first_run_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698