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

Unified Diff: services/java_handler/java_handler.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/http_server/http_server_impl.cc ('k') | services/js/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/java_handler/java_handler.cc
diff --git a/services/java_handler/java_handler.cc b/services/java_handler/java_handler.cc
index 440f72fb8684e63f8df655c71fc8c92f6843bc94..649323310e9d9534094e8396f0af34e1a03da23b 100644
--- a/services/java_handler/java_handler.cc
+++ b/services/java_handler/java_handler.cc
@@ -22,6 +22,7 @@
#include "mojo/application/content_handler_factory.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
using base::android::AttachCurrentThread;
using base::android::ScopedJavaLocalRef;
@@ -91,8 +92,8 @@ void JavaHandler::RunApplication(
void JavaHandler::Initialize(mojo::ApplicationImpl* app) {
tracing_.Initialize(app);
handler_task_runner_ = base::MessageLoop::current()->task_runner();
- app->ConnectToServiceDeprecated("mojo:url_response_disk_cache",
- &url_response_disk_cache_);
+ mojo::ConnectToService(app->shell(), "mojo:url_response_disk_cache",
+ GetProxy(&url_response_disk_cache_));
}
void JavaHandler::GetApplication(base::FilePath* archive_path,
« no previous file with comments | « services/http_server/http_server_impl.cc ('k') | services/js/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698