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

Unified Diff: content/common/service_manager/embedded_service_runner.cc

Issue 2420253002: Rename shell namespace to service_manager (Closed)
Patch Set: . Created 4 years, 2 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: content/common/service_manager/embedded_service_runner.cc
diff --git a/content/common/service_manager/embedded_service_runner.cc b/content/common/service_manager/embedded_service_runner.cc
index 74be94d7a3cfff009454739a2e0ba3dd3e39dea5..f47cee42fd4cb3fa7c2eaf3857b8afcdd31d0eb0 100644
--- a/content/common/service_manager/embedded_service_runner.cc
+++ b/content/common/service_manager/embedded_service_runner.cc
@@ -33,7 +33,7 @@ class EmbeddedServiceRunner::Instance
task_runner_ = base::ThreadTaskRunnerHandle::Get();
}
- void BindServiceRequest(shell::mojom::ServiceRequest request) {
+ void BindServiceRequest(service_manager::mojom::ServiceRequest request) {
DCHECK(runner_thread_checker_.CalledOnValidThread());
if (use_own_thread_ && !thread_) {
@@ -73,7 +73,7 @@ class EmbeddedServiceRunner::Instance
}
void BindServiceRequestOnApplicationThread(
- shell::mojom::ServiceRequest request) {
+ service_manager::mojom::ServiceRequest request) {
DCHECK(task_runner_->BelongsToCurrentThread());
if (!service_) {
@@ -81,15 +81,15 @@ class EmbeddedServiceRunner::Instance
base::Bind(&Instance::Quit, base::Unretained(this)));
}
- shell::ServiceContext* new_connection =
- new shell::ServiceContext(service_.get(), std::move(request));
+ service_manager::ServiceContext* new_connection =
+ new service_manager::ServiceContext(service_.get(), std::move(request));
shell_connections_.push_back(base::WrapUnique(new_connection));
new_connection->SetConnectionLostClosure(
base::Bind(&Instance::OnStop, base::Unretained(this),
new_connection));
}
- void OnStop(shell::ServiceContext* connection) {
+ void OnStop(service_manager::ServiceContext* connection) {
DCHECK(task_runner_->BelongsToCurrentThread());
for (auto it = shell_connections_.begin(); it != shell_connections_.end();
@@ -140,8 +140,9 @@ class EmbeddedServiceRunner::Instance
// These fields must only be accessed from the application thread, except in
// 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::ServiceContext>> shell_connections_;
+ std::unique_ptr<service_manager::Service> service_;
+ std::vector<std::unique_ptr<service_manager::ServiceContext>>
+ shell_connections_;
DISALLOW_COPY_AND_ASSIGN(Instance);
};
@@ -159,7 +160,7 @@ EmbeddedServiceRunner::~EmbeddedServiceRunner() {
}
void EmbeddedServiceRunner::BindServiceRequest(
- shell::mojom::ServiceRequest request) {
+ service_manager::mojom::ServiceRequest request) {
instance_->BindServiceRequest(std::move(request));
}

Powered by Google App Engine
This is Rietveld 408576698