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

Unified Diff: examples/notification_generator/notification_generator.cc

Issue 1916233002: Mark ApplicationImpl::ConnectTo{Application,Service}() as deprecated. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 8 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 | « examples/native_run_app/native_run_app.cc ('k') | examples/spinning_cube/spinning_cube_app.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: examples/notification_generator/notification_generator.cc
diff --git a/examples/notification_generator/notification_generator.cc b/examples/notification_generator/notification_generator.cc
index 9d182b427b51b01b50a42c9c3de65204fcde7ce3..cfdb292e5416f5c24c0d60b62e986ffdd981fcb8 100644
--- a/examples/notification_generator/notification_generator.cc
+++ b/examples/notification_generator/notification_generator.cc
@@ -27,7 +27,8 @@ class NotificationGeneratorDelegate : public mojo::ApplicationDelegate,
// mojo::ApplicationDelegate implementation.
void Initialize(mojo::ApplicationImpl* app) override {
- app->ConnectToService("mojo:notifications", &notification_service_);
+ app->ConnectToServiceDeprecated("mojo:notifications",
+ &notification_service_);
PostFirstNotification();
}
« no previous file with comments | « examples/native_run_app/native_run_app.cc ('k') | examples/spinning_cube/spinning_cube_app.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698