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

Unified Diff: chrome/common/child_thread.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/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
diff --git a/chrome/common/child_thread.cc b/chrome/common/child_thread.cc
index 43da09a220ed4dc237f52f218223bf91156b20dd..48358f149eef7ea021e84ed0d856c4dc81b7a764 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_,
« 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