| Index: content/browser/mojo/interface_registrar_android.cc
|
| diff --git a/content/browser/mojo/interface_registrar_android.cc b/content/browser/mojo/interface_registrar_android.cc
|
| deleted file mode 100644
|
| index 49070f9a7701e7b215c79e6bbd7892ec4f9636a5..0000000000000000000000000000000000000000
|
| --- a/content/browser/mojo/interface_registrar_android.cc
|
| +++ /dev/null
|
| @@ -1,37 +0,0 @@
|
| -// Copyright 2014 The Chromium Authors. All rights reserved.
|
| -// Use of this source code is governed by a BSD-style license that can be
|
| -// found in the LICENSE file.
|
| -
|
| -#include "content/browser/mojo/interface_registrar_android.h"
|
| -
|
| -#include "base/android/context_utils.h"
|
| -#include "base/android/jni_android.h"
|
| -#include "content/public/browser/android/interface_registry_android.h"
|
| -#include "content/public/browser/web_contents.h"
|
| -#include "jni/InterfaceRegistrar_jni.h"
|
| -
|
| -namespace content {
|
| -
|
| -// static
|
| -void InterfaceRegistrarAndroid::ExposeInterfacesToRenderer(
|
| - InterfaceRegistryAndroid* registry) {
|
| - JNIEnv* env = base::android::AttachCurrentThread();
|
| - Java_InterfaceRegistrar_exposeInterfacesToRenderer(
|
| - env, registry->GetObj(), base::android::GetApplicationContext());
|
| -}
|
| -
|
| -// static
|
| -void InterfaceRegistrarAndroid::ExposeInterfacesToFrame(
|
| - InterfaceRegistryAndroid* registry, RenderFrameHost* frame) {
|
| - base::android::ScopedJavaLocalRef<jobject> java_web_contents;
|
| - WebContents* contents = WebContents::FromRenderFrameHost(frame);
|
| - if (contents)
|
| - java_web_contents = contents->GetJavaWebContents();
|
| -
|
| - JNIEnv* env = base::android::AttachCurrentThread();
|
| - Java_InterfaceRegistrar_exposeInterfacesToFrame(
|
| - env, registry->GetObj(),
|
| - base::android::GetApplicationContext(),
|
| - java_web_contents);
|
| -}
|
| -} // namespace content
|
|
|