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

Unified Diff: services/navigation/navigation.cc

Issue 2487573002: Service Manager: Remove ServiceContext* arg from Service::OnStart() (Closed)
Patch Set: rebase Created 4 years, 1 month 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 | « services/navigation/navigation.h ('k') | services/service_manager/public/cpp/lib/service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/navigation/navigation.cc
diff --git a/services/navigation/navigation.cc b/services/navigation/navigation.cc
index 6fe4f700b6584e4d4400fac82e96c7a96c6f2d54..d5c2c70fd6013cce52c813ea0ddc10697c3fd132 100644
--- a/services/navigation/navigation.cc
+++ b/services/navigation/navigation.cc
@@ -44,10 +44,6 @@ Navigation::Navigation()
}
Navigation::~Navigation() {}
-void Navigation::OnStart(service_manager::ServiceContext* context) {
- context_ = context;
-}
-
bool Navigation::OnConnect(const service_manager::ServiceInfo& remote_info,
service_manager::InterfaceRegistry* registry) {
std::string remote_user_id = remote_info.identity.user_id();
@@ -66,7 +62,7 @@ bool Navigation::OnConnect(const service_manager::ServiceInfo& remote_info,
void Navigation::CreateView(mojom::ViewClientPtr client,
mojom::ViewRequest request) {
std::unique_ptr<service_manager::Connector> new_connector =
- context_->connector()->Clone();
+ context()->connector()->Clone();
std::unique_ptr<service_manager::ServiceContextRef> context_ref =
ref_factory_.CreateRef();
view_task_runner_->PostTask(
« no previous file with comments | « services/navigation/navigation.h ('k') | services/service_manager/public/cpp/lib/service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698