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

Unified Diff: chrome/browser/renderer_host/browser_render_process_host.cc

Issue 296004: Use GetSwitchValueASCII. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 1 month 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/plugin_service.cc ('k') | 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/renderer_host/browser_render_process_host.cc
===================================================================
--- chrome/browser/renderer_host/browser_render_process_host.cc (revision 31117)
+++ chrome/browser/renderer_host/browser_render_process_host.cc (working copy)
@@ -455,7 +455,7 @@
FieldTrialList::StatesToString(&field_trial_states);
if (!field_trial_states.empty()) {
command_line->AppendSwitchWithValue(switches::kForceFieldTestNameAndValue,
- ASCIIToWide(field_trial_states));
+ field_trial_states);
}
// A command prefix is something prepended to the command line of the spawned
@@ -475,8 +475,8 @@
ChildProcessHost::SetCrashReporterCommandLine(command_line);
- const std::wstring& profile_path =
- browser_command_line.GetSwitchValue(switches::kUserDataDir);
+ const std::string& profile_path =
+ browser_command_line.GetSwitchValueASCII(switches::kUserDataDir);
if (!profile_path.empty())
command_line->AppendSwitchWithValue(switches::kUserDataDir, profile_path);
}
@@ -541,7 +541,7 @@
for (size_t i = 0; i < arraysize(switch_names); ++i) {
if (browser_cmd.HasSwitch(switch_names[i])) {
renderer_cmd->AppendSwitchWithValue(switch_names[i],
- browser_cmd.GetSwitchValue(switch_names[i]));
+ browser_cmd.GetSwitchValueASCII(switch_names[i]));
}
}
}
« no previous file with comments | « chrome/browser/plugin_service.cc ('k') | chrome/browser/sessions/session_restore.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698