| Index: chrome/browser/android/mojo/chrome_service_registrar.cc
|
| diff --git a/chrome/browser/android/mojo/chrome_service_registrar.cc b/chrome/browser/android/mojo/chrome_service_registrar.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..00cbaa76015334944fb4edcb77981159f632151e
|
| --- /dev/null
|
| +++ b/chrome/browser/android/mojo/chrome_service_registrar.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.h"
|
| +
|
| +#include "base/android/context_utils.h"
|
| +#include "base/android/jni_android.h"
|
| +#include "content/browser/mojo/service_registry_android.h"
|
| +#include "jni/ChromeServiceRegistrar_jni.h"
|
| +
|
| +// static
|
| +bool ChromeServiceRegistrar::Register(JNIEnv* env) {
|
| + return RegisterNativesImpl(env);
|
| +}
|
| +
|
| +// static
|
| +void ChromeServiceRegistrar::RegisterProcessHostServicesForUI(
|
| + content::ServiceRegistryAndroid* registry) {
|
| + Java_ChromeServiceRegistrar_registerProcessHostServicesForUI(
|
| + base::android::AttachCurrentThread(), registry->GetObj().obj(),
|
| + base::android::GetApplicationContext());
|
| +}
|
|
|