[Android] EnhancedBookmarksBridge for bookmark description read&write.
[chromium-blink-merge.git] / components / enhanced_bookmarks / android / component_jni_registrar.cc
blobab4440d5844c2960ec92f14b69cf27cf0318deb9
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "components/enhanced_bookmarks/android/component_jni_registrar.h"
7 #include "base/android/jni_android.h"
8 #include "base/android/jni_registrar.h"
9 #include "base/basictypes.h"
10 #include "components/enhanced_bookmarks/android/enhanced_bookmarks_bridge.h"
12 using base::android::RegistrationMethod;
14 namespace enhanced_bookmarks {
15 namespace android {
17 static RegistrationMethod kEnhancedBookmarksRegisteredMethods[] = {
18 {"EnhancedBookmarksBridge", RegisterEnhancedBookmarksBridge},
21 bool RegisterEnhancedBookmarks(JNIEnv* env) {
22 return base::android::RegisterNativeMethods(
23 env,
24 kEnhancedBookmarksRegisteredMethods,
25 arraysize(kEnhancedBookmarksRegisteredMethods));
28 } // namespace android
29 } // namespace enhanced_bookmarks