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

Unified Diff: chrome/app/mash/mash_runner.cc

Issue 2131493002: ShellConnection -> ServiceContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@st
Patch Set: . Created 4 years, 5 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
« no previous file with comments | « chrome/app/mash/mash_runner.h ('k') | chrome/test/base/mash_browser_tests_main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/app/mash/mash_runner.cc
diff --git a/chrome/app/mash/mash_runner.cc b/chrome/app/mash/mash_runner.cc
index 927d57ee37b0551883f33532068c66e3cdf7eca9..bd0e252fbdf4fde45a052e587f67409596cd543d 100644
--- a/chrome/app/mash/mash_runner.cc
+++ b/chrome/app/mash/mash_runner.cc
@@ -26,7 +26,7 @@
#include "services/shell/public/cpp/connector.h"
#include "services/shell/public/cpp/identity.h"
#include "services/shell/public/cpp/service.h"
-#include "services/shell/public/cpp/shell_connection.h"
+#include "services/shell/public/cpp/service_context.h"
#include "services/shell/public/interfaces/service_factory.mojom.h"
#include "services/shell/runner/common/switches.h"
#include "services/shell/runner/host/child_process_base.h"
@@ -73,7 +73,7 @@ class DefaultService : public shell::Service,
service_ = CreateService(mojo_name);
if (service_) {
shell_connection_.reset(
- new shell::ShellConnection(service_.get(), std::move(request)));
+ new shell::ServiceContext(service_.get(), std::move(request)));
return;
}
LOG(ERROR) << "unknown name " << mojo_name;
@@ -108,7 +108,7 @@ class DefaultService : public shell::Service,
mojo::BindingSet<ServiceFactory> service_factory_bindings_;
std::unique_ptr<shell::Service> service_;
- std::unique_ptr<shell::ShellConnection> shell_connection_;
+ std::unique_ptr<shell::ServiceContext> shell_connection_;
DISALLOW_COPY_AND_ASSIGN(DefaultService);
};
@@ -187,7 +187,7 @@ void MashRunner::RunMain() {
init_params->native_runner_delegate = &native_runner_delegate;
background_shell.Init(std::move(init_params));
service_.reset(new DefaultService);
- shell_connection_.reset(new shell::ShellConnection(
+ shell_connection_.reset(new shell::ServiceContext(
service_.get(),
background_shell.CreateServiceRequest("exe:chrome_mash")));
shell_connection_->connector()->Connect("mojo:mash_session");
@@ -205,7 +205,7 @@ void MashRunner::StartChildApp(
// TODO(sky): use MessagePumpMojo.
base::MessageLoop message_loop(base::MessageLoop::TYPE_UI);
service_.reset(new DefaultService);
- shell_connection_.reset(new shell::ShellConnection(
+ shell_connection_.reset(new shell::ServiceContext(
service_.get(), std::move(service_request)));
message_loop.Run();
}
« no previous file with comments | « chrome/app/mash/mash_runner.h ('k') | chrome/test/base/mash_browser_tests_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698