| Index: components/policy/core/browser/android/component_jni_registrar.cc
|
| diff --git a/components/policy/core/browser/android/component_jni_registrar.cc b/components/policy/core/browser/android/component_jni_registrar.cc
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..c73cb9c378b948d8645c73a0cff70585781051df
|
| --- /dev/null
|
| +++ b/components/policy/core/browser/android/component_jni_registrar.cc
|
| @@ -0,0 +1,25 @@
|
| +// Copyright 2015 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 "components/policy/core/browser/android/component_jni_registrar.h"
|
| +
|
| +#include "base/android/jni_android.h"
|
| +#include "base/android/jni_registrar.h"
|
| +#include "base/basictypes.h"
|
| +#include "components/policy/core/browser/android/policy_converter.h"
|
| +
|
| +namespace policy {
|
| +namespace android {
|
| +
|
| +static base::android::RegistrationMethod kPolicyRegisteredMethods[] = {
|
| + {"PolicyConverter", RegisterPolicyConverter},
|
| +};
|
| +
|
| +bool RegisterPolicy(JNIEnv* env) {
|
| + return base::android::RegisterNativeMethods(
|
| + env, kPolicyRegisteredMethods, arraysize(kPolicyRegisteredMethods));
|
| +}
|
| +
|
| +} // namespace android
|
| +} // namespace policy
|
|
|