| 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,
|
|
|