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

Unified Diff: content/common/mojo/embedded_application_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 | « content/browser/mojo/mojo_shell_context.cc ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/mojo/embedded_application_runner.cc
diff --git a/content/common/mojo/embedded_application_runner.cc b/content/common/mojo/embedded_application_runner.cc
index 39a5eb13f9bb852fbe47fa6800e532e96bb64afd..c0257e19e4ae6b3015e8f29024400a7af9aec3f0 100644
--- a/content/common/mojo/embedded_application_runner.cc
+++ b/content/common/mojo/embedded_application_runner.cc
@@ -13,7 +13,7 @@
#include "base/threading/thread.h"
#include "base/threading/thread_checker.h"
#include "base/threading/thread_task_runner_handle.h"
-#include "services/shell/public/cpp/shell_connection.h"
+#include "services/shell/public/cpp/service_context.h"
namespace content {
@@ -68,8 +68,8 @@ class EmbeddedApplicationRunner::Instance
base::Bind(&Instance::Quit, base::Unretained(this)));
}
- shell::ShellConnection* new_connection =
- new shell::ShellConnection(service_.get(), std::move(request));
+ shell::ServiceContext* new_connection =
+ new shell::ServiceContext(service_.get(), std::move(request));
shell_connections_.push_back(base::WrapUnique(new_connection));
new_connection->SetConnectionLostClosure(
base::Bind(&Instance::OnStop, base::Unretained(this),
@@ -85,7 +85,7 @@ class EmbeddedApplicationRunner::Instance
DCHECK(!thread_);
}
- void OnStop(shell::ShellConnection* connection) {
+ void OnStop(shell::ServiceContext* connection) {
DCHECK(application_task_runner_->BelongsToCurrentThread());
for (auto it = shell_connections_.begin(); it != shell_connections_.end();
@@ -130,7 +130,7 @@ class EmbeddedApplicationRunner::Instance
// the destructor which may run on either the runner thread or the application
// thread.
std::unique_ptr<shell::Service> service_;
- std::vector<std::unique_ptr<shell::ShellConnection>> shell_connections_;
+ std::vector<std::unique_ptr<shell::ServiceContext>> shell_connections_;
DISALLOW_COPY_AND_ASSIGN(Instance);
};
« no previous file with comments | « content/browser/mojo/mojo_shell_context.cc ('k') | content/common/mojo/mojo_shell_connection_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698