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

Unified Diff: chrome/browser/nacl_host/nacl_broker_host_win.cc

Issue 8774040: Don't make classes derive from ChildProcessHost, and instead have them use it through composition... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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
Index: chrome/browser/nacl_host/nacl_broker_host_win.cc
===================================================================
--- chrome/browser/nacl_host/nacl_broker_host_win.cc (revision 112597)
+++ chrome/browser/nacl_host/nacl_broker_host_win.cc (working copy)
@@ -14,6 +14,7 @@
#include "chrome/common/logging_chrome.h"
#include "chrome/common/nacl_cmd_line.h"
#include "chrome/common/nacl_messages.h"
+#include "content/common/child_process_host.h"
NaClBrokerHost::NaClBrokerHost()
: BrowserChildProcessHost(content::PROCESS_TYPE_NACL_BROKER),
@@ -25,7 +26,7 @@
bool NaClBrokerHost::Init() {
// Create the channel that will be used for communicating with the broker.
- if (!CreateChannel())
+ if (!child_process_host()->CreateChannel())
return false;
// Create the path to the nacl broker/loader executable.
@@ -39,7 +40,8 @@
cmd_line->AppendSwitchASCII(switches::kProcessType,
switches::kNaClBrokerProcess);
- cmd_line->AppendSwitchASCII(switches::kProcessChannelID, channel_id());
+ cmd_line->AppendSwitchASCII(switches::kProcessChannelID,
+ child_process_host()->channel_id());
if (logging::DialogsAreSuppressed())
cmd_line->AppendSwitch(switches::kNoErrorDialogs);

Powered by Google App Engine
This is Rietveld 408576698