From 29dec844330333ee0aacb9beb5cfb58d7ba31d18 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 17 Sep 2015 19:46:40 -0700 Subject: Some more minor cleanup to ApplicationManager. R=yzshen@chromium.org http://crbug.com/533085 Committed: https://crrev.com/c6bde172a35b65b5a735675e840fab55921d28f8 Cr-Commit-Position: refs/heads/master@{#349515} Review URL: https://codereview.chromium.org/1351963002 Cr-Commit-Position: refs/heads/master@{#349590} --- mandoline/app/android/mandoline_activity.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'mandoline/app/android/mandoline_activity.cc') 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& clazz, const JavaParamRef& 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)); } -- cgit v1.1