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

Unified Diff: services/notifications/apptests/notifications_apptest.cc

Issue 1915403002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 2. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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 | « services/native_viewport/platform_viewport_android.cc ('k') | services/prediction/prediction_apptests.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/notifications/apptests/notifications_apptest.cc
diff --git a/services/notifications/apptests/notifications_apptest.cc b/services/notifications/apptests/notifications_apptest.cc
index c5e17f248bf9b9cea1cc3b57878cf7e8e83ef823..dc41dd131b112fbd196ee9f60376d9c487934752 100644
--- a/services/notifications/apptests/notifications_apptest.cc
+++ b/services/notifications/apptests/notifications_apptest.cc
@@ -6,6 +6,7 @@
#include "base/message_loop/message_loop.h"
#include "mojo/public/cpp/application/application_impl.h"
#include "mojo/public/cpp/application/application_test_base.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/bindings/callback.h"
#include "mojo/public/cpp/environment/logging.h"
#include "mojo/public/cpp/system/macros.h"
@@ -30,8 +31,8 @@ class NotificationsApplicationTest : public test::ApplicationTestBase,
// ApplicationTestBase:
void SetUp() override {
ApplicationTestBase::SetUp();
- application_impl()->ConnectToServiceDeprecated("mojo:notifications",
- &notification_service_);
+ ConnectToService(application_impl()->shell(), "mojo:notifications",
+ GetProxy(&notification_service_));
}
notifications::NotificationServicePtr notification_service_;
« no previous file with comments | « services/native_viewport/platform_viewport_android.cc ('k') | services/prediction/prediction_apptests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698