| Index: content/browser/mojo/mojo_application_host.cc
|
| diff --git a/content/browser/mojo/mojo_application_host.cc b/content/browser/mojo/mojo_application_host.cc
|
| index 48d343a26217e7607f546cfefcd854f3b4416c19..5bfd62ef58d86087b8af8190f694e8375434644b 100644
|
| --- a/content/browser/mojo/mojo_application_host.cc
|
| +++ b/content/browser/mojo/mojo_application_host.cc
|
| @@ -30,7 +30,7 @@ MojoApplicationHost::~MojoApplicationHost() {
|
| }
|
|
|
| bool MojoApplicationHost::Init() {
|
| - DCHECK(shell_client_.is_null()) << "Already initialized!";
|
| + DCHECK(!shell_.get()) << "Already initialized!";
|
|
|
| mojo::embedder::PlatformChannelPair channel_pair;
|
|
|
| @@ -43,10 +43,8 @@ bool MojoApplicationHost::Init() {
|
| // Forward this to the client once we know its process handle.
|
| client_handle_ = channel_pair.PassClientHandle();
|
|
|
| - // TODO(darin): Provide a Shell implementation
|
| - shell_client_.reset(
|
| - mojo::ScopedShellClientHandle::From(message_pipe.Pass()), NULL);
|
| -
|
| + shell_.Bind(new ShellImpl());
|
| + shell_.ConfigureStub(message_pipe.Pass());
|
| return true;
|
| }
|
|
|
| @@ -62,4 +60,14 @@ bool MojoApplicationHost::Activate(IPC::Sender* sender,
|
| return did_activate_;
|
| }
|
|
|
| +void MojoApplicationHost::ShellImpl::SetClient(mojo::ShellClient* client) {
|
| + client_ = client;
|
| +}
|
| +
|
| +void MojoApplicationHost::ShellImpl::Connect(
|
| + const mojo::String& url,
|
| + mojo::ScopedMessagePipeHandle handle) {
|
| + // TODO(darin): Provide something meaningful here.
|
| +}
|
| +
|
| } // namespace content
|
|
|