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

Unified Diff: chrome/browser/worker_host/worker_process_host.cc

Issue 3069014: Convert a bunch of easy AppendSwitchWithValue to *ASCII. (Closed)
Patch Set: fix Created 10 years, 5 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/utility_process_host.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/worker_host/worker_process_host.cc
diff --git a/chrome/browser/worker_host/worker_process_host.cc b/chrome/browser/worker_host/worker_process_host.cc
index f995cbd109e84a7a932d0c85e6ba7c4852da6f0d..d9b1ebc618106b3a12c41dd785d1c1ea679cb6b0 100644
--- a/chrome/browser/worker_host/worker_process_host.cc
+++ b/chrome/browser/worker_host/worker_process_host.cc
@@ -105,9 +105,8 @@ bool WorkerProcessHost::Init() {
return false;
CommandLine* cmd_line = new CommandLine(exe_path);
- cmd_line->AppendSwitchWithValue(switches::kProcessType,
- switches::kWorkerProcess);
- cmd_line->AppendSwitchWithValue(switches::kProcessChannelID, channel_id());
+ cmd_line->AppendSwitchASCII(switches::kProcessType, switches::kWorkerProcess);
+ cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id());
SetCrashReporterCommandLine(cmd_line);
if (CommandLine::ForCurrentProcess()->HasSwitch(
@@ -136,10 +135,10 @@ bool WorkerProcessHost::Init() {
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kLoggingLevel)) {
- const std::wstring level =
- CommandLine::ForCurrentProcess()->GetSwitchValue(
+ const std::string level =
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
switches::kLoggingLevel);
- cmd_line->AppendSwitchWithValue(switches::kLoggingLevel, level);
+ cmd_line->AppendSwitchASCII(switches::kLoggingLevel, level);
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
« no previous file with comments | « chrome/browser/utility_process_host.cc ('k') | chrome/browser/zygote_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698