Index: chrome/browser/android/mojo/chrome_interface_registrar_android.cc |
diff --git a/chrome/browser/android/mojo/chrome_service_registrar_android.cc b/chrome/browser/android/mojo/chrome_interface_registrar_android.cc |
similarity index 61% |
rename from chrome/browser/android/mojo/chrome_service_registrar_android.cc |
rename to chrome/browser/android/mojo/chrome_interface_registrar_android.cc |
index ffb0cdbd61cd131a5261ffa8aae8484d99a40ba3..8a19f5c56abeb130ca37392a1e88040cc5be44db 100644 |
--- a/chrome/browser/android/mojo/chrome_service_registrar_android.cc |
+++ b/chrome/browser/android/mojo/chrome_interface_registrar_android.cc |
@@ -2,22 +2,22 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "chrome/browser/android/mojo/chrome_service_registrar_android.h" |
+#include "chrome/browser/android/mojo/chrome_interface_registrar_android.h" |
#include "base/android/context_utils.h" |
#include "base/android/jni_android.h" |
-#include "content/public/browser/android/service_registry_android.h" |
+#include "content/public/browser/android/interface_registry_android.h" |
#include "content/public/browser/web_contents.h" |
-#include "jni/ChromeServiceRegistrar_jni.h" |
+#include "jni/ChromeInterfaceRegistrar_jni.h" |
#include "services/shell/public/cpp/interface_registry.h" |
// static |
-bool ChromeServiceRegistrarAndroid::Register(JNIEnv* env) { |
+bool ChromeInterfaceRegistrarAndroid::Register(JNIEnv* env) { |
return RegisterNativesImpl(env); |
} |
// static |
-void ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces( |
+void ChromeInterfaceRegistrarAndroid::ExposeInterfacesToFrame( |
shell::InterfaceRegistry* registry, |
content::RenderFrameHost* render_frame_host) { |
content::WebContents* web_contents = |
@@ -27,9 +27,8 @@ void ChromeServiceRegistrarAndroid::RegisterRenderFrameMojoInterfaces( |
if (!web_contents) |
return; |
- Java_ChromeServiceRegistrar_registerRenderFrameMojoServices( |
+ Java_ChromeInterfaceRegistrar_exposeInterfacesToFrame( |
base::android::AttachCurrentThread(), |
- content::ServiceRegistryAndroid::Create(registry, |
- nullptr)->GetObj().obj(), |
+ content::InterfaceRegistryAndroid::Create(registry)->GetObj().obj(), |
web_contents->GetJavaWebContents().obj()); |
} |