diff options
Diffstat (limited to 'chrome/common/child_thread.cc')
-rw-r--r-- | chrome/common/child_thread.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/common/child_thread.cc b/chrome/common/child_thread.cc index 43da09a..48358f1 100644 --- a/chrome/common/child_thread.cc +++ b/chrome/common/child_thread.cc @@ -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 @@ void ChildThread::Init() { 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_, |