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

Unified Diff: components/leveldb/leveldb_app.cc

Issue 2476063002: Service Manager: Rework Service and ServiceContext lifetime (Closed)
Patch Set: . 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 | « components/leveldb/leveldb_app.h ('k') | content/common/service_manager/embedded_service_runner.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/leveldb/leveldb_app.cc
diff --git a/components/leveldb/leveldb_app.cc b/components/leveldb/leveldb_app.cc
index 862f0bde13f3fecccd2b285b055ea1bafff680e1..a8402408755dbfb1e57a0f3f49ef0fa1950eddb8 100644
--- a/components/leveldb/leveldb_app.cc
+++ b/components/leveldb/leveldb_app.cc
@@ -7,6 +7,7 @@
#include "base/threading/thread_task_runner_handle.h"
#include "components/leveldb/leveldb_service_impl.h"
#include "services/service_manager/public/cpp/interface_registry.h"
+#include "services/service_manager/public/cpp/service_context.h"
namespace leveldb {
@@ -14,8 +15,8 @@ LevelDBApp::LevelDBApp() {}
LevelDBApp::~LevelDBApp() {}
-void LevelDBApp::OnStart(const service_manager::ServiceInfo& info) {
- tracing_.Initialize(connector(), info.identity.name());
+void LevelDBApp::OnStart(service_manager::ServiceContext* context) {
+ tracing_.Initialize(context->connector(), context->identity().name());
}
bool LevelDBApp::OnConnect(const service_manager::ServiceInfo& remote_info,
« no previous file with comments | « components/leveldb/leveldb_app.h ('k') | content/common/service_manager/embedded_service_runner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698