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

Unified Diff: services/authentication/main.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/authentication/accounts_db_manager_unittest.cc ('k') | services/clipboard/clipboard_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/authentication/main.cc
diff --git a/services/authentication/main.cc b/services/authentication/main.cc
index 96647314762f9149bb0e55ec17d916c24a79d685..25c0140f2a005671d55aae0d5f301d7b80572fcf 100644
--- a/services/authentication/main.cc
+++ b/services/authentication/main.cc
@@ -8,6 +8,7 @@
#include "mojo/public/cpp/application/application_connection.h"
#include "mojo/public/cpp/application/application_delegate.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "mojo/public/cpp/application/interface_factory.h"
#include "mojo/public/cpp/bindings/strong_binding.h"
#include "mojo/public/cpp/system/macros.h"
@@ -25,8 +26,9 @@ class GoogleAccountManagerApp
~GoogleAccountManagerApp() override {}
void Initialize(mojo::ApplicationImpl* app) override {
- app->ConnectToServiceDeprecated("mojo:network_service", &network_service_);
- app->ConnectToServiceDeprecated("mojo:files", &files_);
+ mojo::ConnectToService(app->shell(), "mojo:network_service",
+ GetProxy(&network_service_));
+ mojo::ConnectToService(app->shell(), "mojo:files", GetProxy(&files_));
app_url_ = app->url();
}
« no previous file with comments | « services/authentication/accounts_db_manager_unittest.cc ('k') | services/clipboard/clipboard_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698