| Index: chrome/browser/android/mojo/chrome_service_registrar_android.cc
|
| diff --git a/chrome/browser/android/mojo/chrome_service_registrar_android.cc b/chrome/browser/android/mojo/chrome_service_registrar_android.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..256a93e56371adfd551ccbd30f329e78abea8b6b
|
| --- /dev/null
|
| +++ b/chrome/browser/android/mojo/chrome_service_registrar_android.cc
|
| @@ -0,0 +1,23 @@
|
| +// Copyright 2016 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 "chrome/browser/android/mojo/chrome_service_registrar_android.h"
|
| +
|
| +#include "base/android/context_utils.h"
|
| +#include "base/android/jni_android.h"
|
| +#include "content/public/common/service_registry.h"
|
| +#include "jni/ChromeServiceRegistrar_jni.h"
|
| +
|
| +// static
|
| +bool ChromeServiceRegistrarAndroid::RegisterJni(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +// static
|
| +void ChromeServiceRegistrarAndroid::RegisterServices(
|
| + content::ServiceRegistry* registry) {
|
| + Java_ChromeServiceRegistrar_registerServices(
|
| + base::android::AttachCurrentThread(), registry->GetJavaObj().obj(),
|
| + base::android::GetApplicationContext());
|
| +}
|
|
|