diff options
Diffstat (limited to 'mandoline/app')
-rw-r--r-- | mandoline/app/android/BUILD.gn | 1 | ||||
-rw-r--r-- | mandoline/app/android/mandoline_activity.cc | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/mandoline/app/android/BUILD.gn b/mandoline/app/android/BUILD.gn index 20c3fac..3823c04 100644 --- a/mandoline/app/android/BUILD.gn +++ b/mandoline/app/android/BUILD.gn @@ -27,6 +27,7 @@ executable("mandoline_runner") { "//mojo/package_manager", "//mojo/runner:lib", "//mojo/runner:mojo_runner_lib", + "//mojo/shell", ] sources = [ diff --git a/mandoline/app/android/mandoline_activity.cc b/mandoline/app/android/mandoline_activity.cc index 0d05724..6ad7a8c 100644 --- a/mandoline/app/android/mandoline_activity.cc +++ b/mandoline/app/android/mandoline_activity.cc @@ -7,6 +7,7 @@ #include "mandoline/ui/desktop_ui/public/interfaces/launch_handler.mojom.h" #include "mojo/runner/android/main.h" #include "mojo/runner/context.h" +#include "mojo/shell/connect_util.h" namespace mandoline { @@ -14,8 +15,9 @@ static void LaunchURL(JNIEnv* env, const JavaParamRef<jclass>& clazz, const JavaParamRef<jstring>& jurl) { LaunchHandlerPtr launch_handler; - mojo::runner::GetContext()->application_manager()->ConnectToService( - GURL("mojo:phone_ui"), &launch_handler); + mojo::shell::ConnectToService( + mojo::runner::GetContext()->application_manager(), GURL("mojo:phone_ui"), + &launch_handler); launch_handler->LaunchURL( base::android::ConvertJavaStringToUTF8(env, jurl)); } |