diff options
author | ben <ben@chromium.org> | 2016-03-04 21:16:17 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-03-05 05:17:27 +0000 |
commit | 15b9a8b847fe280eb141897ea4f0a60fa1060476 (patch) | |
tree | 27e60ea9a581acb8e0abbaeffcb26aedc796dc0e /mojo/shell/background | |
parent | c3b24696fbe3e4704caf031a59a4d50a4fcedab7 (diff) | |
download | chromium_src-15b9a8b847fe280eb141897ea4f0a60fa1060476.zip chromium_src-15b9a8b847fe280eb141897ea4f0a60fa1060476.tar.gz chromium_src-15b9a8b847fe280eb141897ea4f0a60fa1060476.tar.bz2 |
Rename shell.mojom to connector.mojom and ApplicationManager to Shell
TBR=sky@chromium.org
BUG=
CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation
Review URL: https://codereview.chromium.org/1764253002
Cr-Commit-Position: refs/heads/master@{#379459}
Diffstat (limited to 'mojo/shell/background')
-rw-r--r-- | mojo/shell/background/background_shell.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/mojo/shell/background/background_shell.cc b/mojo/shell/background/background_shell.cc index e53d7f9..02a750b 100644 --- a/mojo/shell/background/background_shell.cc +++ b/mojo/shell/background/background_shell.cc @@ -13,11 +13,11 @@ #include "base/threading/simple_thread.h" #include "mojo/message_pump/message_pump_mojo.h" #include "mojo/services/package_manager/package_manager.h" -#include "mojo/shell/application_manager.h" #include "mojo/shell/connect_params.h" #include "mojo/shell/loader.h" #include "mojo/shell/public/cpp/shell_client.h" #include "mojo/shell/public/cpp/shell_connection.h" +#include "mojo/shell/shell.h" #include "mojo/shell/standalone/context.h" namespace mojo { @@ -81,14 +81,13 @@ class BackgroundShell::MojoThread : public base::SimpleThread { // Only valid to call this on the background thread. DCHECK_EQ(message_loop_, base::MessageLoop::current()); - // Ownership of |loader| passes to ApplicationManager. + // Ownership of |loader| passes to Shell. const std::string name = params->target().name(); BackgroundLoader* loader = new BackgroundLoader( base::Bind(&MojoThread::OnGotApplicationRequest, base::Unretained(this), name, signal, request)); - context_->application_manager()->SetLoaderForName(make_scoped_ptr(loader), - name); - context_->application_manager()->Connect(std::move(params)); + context_->shell()->SetLoaderForName(make_scoped_ptr(loader), name); + context_->shell()->Connect(std::move(params)); // The request is asynchronously processed. When processed // OnGotApplicationRequest() is called and we'll signal |signal|. } @@ -146,7 +145,7 @@ class BackgroundShell::MojoThread : public base::SimpleThread { mojom::ShellClientRequest actual_request) { *request_result = std::move(actual_request); // Trigger destruction of the loader. - context_->application_manager()->SetLoaderForName(nullptr, name); + context_->shell()->SetLoaderForName(nullptr, name); signal->Signal(); } |