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

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

Issue 373013: Use GetSwitchValueASCII. (Closed)
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
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index 91c692faae32416e6e10ab9e99c173d1713d5311..f3484a1801a1c930d08bb4d948269d38a217d795 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -479,7 +479,7 @@ void BrowserRenderProcessHost::AppendRendererCommandLine(
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
@@ -499,8 +499,8 @@ void BrowserRenderProcessHost::AppendRendererCommandLine(
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);
}
@@ -566,7 +566,7 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
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