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

Unified Diff: chrome/common/child_thread.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/zygote_host_linux.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/child_thread.cc
===================================================================
--- chrome/common/child_thread.cc (revision 31117)
+++ chrome/common/child_thread.cc (working copy)
@@ -17,9 +17,8 @@
ChildThread::ChildThread() {
- channel_name_ = WideToASCII(
- CommandLine::ForCurrentProcess()->GetSwitchValue(
- switches::kProcessChannelID));
+ channel_name_ = CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kProcessChannelID);
Init();
}
@@ -32,9 +31,9 @@
check_with_browser_before_shutdown_ = false;
message_loop_ = MessageLoop::current();
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kUserAgent)) {
- webkit_glue::SetUserAgent(WideToUTF8(
- CommandLine::ForCurrentProcess()->GetSwitchValue(
- switches::kUserAgent)));
+ webkit_glue::SetUserAgent(
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII(
+ switches::kUserAgent));
}
channel_.reset(new IPC::SyncChannel(channel_name_,
« no previous file with comments | « chrome/browser/zygote_host_linux.cc ('k') | chrome/common/chrome_paths.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698