Index: mandoline/app/android/mandoline_activity.cc |
diff --git a/mandoline/app/android/mandoline_activity.cc b/mandoline/app/android/mandoline_activity.cc |
index 0d05724fcf4b00c2cf22a0ca7bc8cea70cd516ee..6ad7a8cbcb8df32b2cfa2d06fe0522bcd1443976 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)); |
} |