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

Unified Diff: mojo/shell/app_child_process_host.cc

Issue 265793015: Mojo: Replace RemotePtr with InterfacePtr and InterfaceImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 months 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: mojo/shell/app_child_process_host.cc
diff --git a/mojo/shell/app_child_process_host.cc b/mojo/shell/app_child_process_host.cc
index d35da8ec493241d02269f88a5b21d0897bd77e0c..b514ce6d7415a860a65be4a4a25bae2d6f5da710 100644
--- a/mojo/shell/app_child_process_host.cc
+++ b/mojo/shell/app_child_process_host.cc
@@ -16,7 +16,7 @@ namespace shell {
AppChildProcessHost::AppChildProcessHost(
Context* context,
- mojo_shell::AppChildControllerClient* controller_client)
+ AppChildControllerClient* controller_client)
: ChildProcessHost(context, this, ChildProcess::TYPE_APP),
controller_client_(controller_client),
channel_info_(NULL) {
@@ -28,16 +28,15 @@ AppChildProcessHost::~AppChildProcessHost() {
void AppChildProcessHost::WillStart() {
DCHECK(platform_channel()->is_valid());
- mojo::ScopedMessagePipeHandle child_message_pipe(embedder::CreateChannel(
+ mojo::ScopedMessagePipeHandle handle(embedder::CreateChannel(
platform_channel()->Pass(),
context()->task_runners()->io_runner(),
base::Bind(&AppChildProcessHost::DidCreateChannel,
base::Unretained(this)),
base::MessageLoop::current()->message_loop_proxy()));
- controller_.reset(
- mojo_shell::ScopedAppChildControllerHandle(
- mojo_shell::AppChildControllerHandle(
- child_message_pipe.release().value())), controller_client_);
+
+ controller_.Bind(handle.Pass());
+ controller_->SetClient(controller_client_);
}
void AppChildProcessHost::DidStart(bool success) {

Powered by Google App Engine
This is Rietveld 408576698