Index: content/browser/utility_process_host.cc |
=================================================================== |
--- content/browser/utility_process_host.cc (revision 112775) |
+++ content/browser/utility_process_host.cc (working copy) |
@@ -9,7 +9,7 @@ |
#include "base/command_line.h" |
#include "base/message_loop.h" |
#include "base/utf_string_conversions.h" |
-#include "content/common/child_process_host.h" |
+#include "content/common/child_process_host_impl.h" |
#include "content/common/utility_messages.h" |
#include "content/public/browser/content_browser_client.h" |
#include "content/public/common/content_switches.h" |
@@ -18,6 +18,7 @@ |
#include "webkit/plugins/plugin_switches.h" |
using content::BrowserThread; |
+using content::ChildProcessHost; |
UtilityProcessHost::Client::Client() { |
} |
@@ -87,7 +88,8 @@ |
// launches a UtilityProcessHost. |
set_name(ASCIIToUTF16("utility process")); |
- if (!child_process_host()->CreateChannel()) |
+ std::string channel_id = child_process_host()->CreateChannel(); |
+ if (channel_id.empty()) |
return false; |
FilePath exe_path = GetUtilityProcessCmd(); |
@@ -99,8 +101,7 @@ |
CommandLine* cmd_line = new CommandLine(exe_path); |
cmd_line->AppendSwitchASCII(switches::kProcessType, |
switches::kUtilityProcess); |
- cmd_line->AppendSwitchASCII(switches::kProcessChannelID, |
- child_process_host()->channel_id()); |
+ cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id); |
std::string locale = |
content::GetContentClient()->browser()->GetApplicationLocale(); |
cmd_line->AppendSwitchASCII(switches::kLang, locale); |