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

Unified Diff: components/font_service/font_service_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/font_service/font_service_app.h ('k') | components/leveldb/leveldb_app.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/font_service/font_service_app.cc
diff --git a/components/font_service/font_service_app.cc b/components/font_service/font_service_app.cc
index d59b158ab51cfd4e03b85c0d6a62bc877168e1f4..1bd0a197dd71a91e7a736cdc7cf3c98c83ff874b 100644
--- a/components/font_service/font_service_app.cc
+++ b/components/font_service/font_service_app.cc
@@ -10,6 +10,8 @@
#include "base/files/file_path.h"
#include "mojo/public/cpp/system/platform_handle.h"
#include "services/service_manager/public/cpp/connection.h"
+#include "services/service_manager/public/cpp/interface_registry.h"
+#include "services/service_manager/public/cpp/service_context.h"
static_assert(
static_cast<uint32_t>(SkFontStyle::kUpright_Slant) ==
@@ -48,8 +50,8 @@ FontServiceApp::FontServiceApp() {}
FontServiceApp::~FontServiceApp() {}
-void FontServiceApp::OnStart(const service_manager::ServiceInfo& info) {
- tracing_.Initialize(connector(), info.identity.name());
+void FontServiceApp::OnStart(service_manager::ServiceContext* context) {
+ tracing_.Initialize(context->connector(), context->identity().name());
}
bool FontServiceApp::OnConnect(const service_manager::ServiceInfo& remote_info,
« no previous file with comments | « components/font_service/font_service_app.h ('k') | components/leveldb/leveldb_app.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698