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

Unified Diff: shell/android/android_handler.cc

Issue 1919313002: ApplicationImpl::ConnectToServiceDeprecated() -> mojo::ConnectToService() conversion, part 3. (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 | « services/url_response_disk_cache/url_response_disk_cache_apptest.cc ('k') | shell/android/nfc_apptest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: shell/android/android_handler.cc
diff --git a/shell/android/android_handler.cc b/shell/android/android_handler.cc
index a092dea0e3d4e07fb57de5efb7bd9d42090cd617..b2c1118e0a59daec31fe39b0bfef3feb76d939e3 100644
--- a/shell/android/android_handler.cc
+++ b/shell/android/android_handler.cc
@@ -20,6 +20,7 @@
#include "mojo/data_pipe_utils/data_pipe_utils.h"
#include "mojo/public/c/system/main.h"
#include "mojo/public/cpp/application/application_impl.h"
+#include "mojo/public/cpp/application/connect.h"
#include "shell/android/run_android_application_function.h"
#include "shell/native_application_support.h"
@@ -125,8 +126,8 @@ void AndroidHandler::RunApplication(
void AndroidHandler::Initialize(mojo::ApplicationImpl* 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_));
}
bool AndroidHandler::ConfigureIncomingConnection(
« no previous file with comments | « services/url_response_disk_cache/url_response_disk_cache_apptest.cc ('k') | shell/android/nfc_apptest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698