Revert "Fix broken channel icon in chrome://help on CrOS" and try again
[chromium-blink-merge.git] / base / android / base_jni_registrar.cc
blob752dcff19c438588fc2b92139a2424cce0967897
1 // Copyright (c) 2012 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 "base/android/base_jni_registrar.h"
7 #include "base/android/animation_frame_time_histogram.h"
8 #include "base/android/apk_assets.h"
9 #include "base/android/application_status_listener.h"
10 #include "base/android/build_info.h"
11 #include "base/android/command_line_android.h"
12 #include "base/android/content_uri_utils.h"
13 #include "base/android/cpu_features.h"
14 #include "base/android/event_log.h"
15 #include "base/android/field_trial_list.h"
16 #include "base/android/important_file_writer_android.h"
17 #include "base/android/java_handler_thread.h"
18 #include "base/android/java_runtime.h"
19 #include "base/android/jni_android.h"
20 #include "base/android/jni_registrar.h"
21 #include "base/android/jni_utils.h"
22 #include "base/android/locale_utils.h"
23 #include "base/android/memory_pressure_listener_android.h"
24 #include "base/android/path_service_android.h"
25 #include "base/android/path_utils.h"
26 #include "base/android/record_histogram.h"
27 #include "base/android/record_user_action.h"
28 #include "base/android/sys_utils.h"
29 #include "base/android/thread_utils.h"
30 #include "base/android/trace_event_binding.h"
31 #include "base/basictypes.h"
32 #include "base/message_loop/message_pump_android.h"
33 #include "base/power_monitor/power_monitor_device_source_android.h"
34 #include "base/trace_event/trace_event.h"
36 namespace base {
37 namespace android {
39 static RegistrationMethod kBaseRegisteredMethods[] = {
40 {"AnimationFrameTimeHistogram",
41 base::android::RegisterAnimationFrameTimeHistogram},
42 {"ApkAssets",
43 base::android::RegisterApkAssets},
44 {"ApplicationStatusListener",
45 base::android::ApplicationStatusListener::RegisterBindings},
46 {"BuildInfo", base::android::BuildInfo::RegisterBindings},
47 {"CommandLine", base::android::RegisterCommandLine},
48 {"ContentUriUtils", base::RegisterContentUriUtils},
49 {"CpuFeatures", base::android::RegisterCpuFeatures},
50 {"EventLog", base::android::RegisterEventLog},
51 {"FieldTrialList", base::android::RegisterFieldTrialList},
52 {"ImportantFileWriterAndroid",
53 base::android::RegisterImportantFileWriterAndroid},
54 {"JNIUtils", base::android::RegisterJNIUtils},
55 {"LocaleUtils", base::android::RegisterLocaleUtils},
56 {"MemoryPressureListenerAndroid",
57 base::android::MemoryPressureListenerAndroid::Register},
58 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
59 {"PathService", base::android::RegisterPathService},
60 {"PathUtils", base::android::RegisterPathUtils},
61 {"PowerMonitor", base::RegisterPowerMonitor},
62 {"RecordHistogram", base::android::RegisterRecordHistogram},
63 {"RecordUserAction", base::android::RegisterRecordUserAction},
64 {"Runtime", base::android::JavaRuntime::Register},
65 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
66 {"SysUtils", base::android::SysUtils::Register},
67 {"ThreadUtils", base::RegisterThreadUtils},
68 {"TraceEvent", base::android::RegisterTraceEvent},
71 bool RegisterJni(JNIEnv* env) {
72 TRACE_EVENT0("startup", "base_android::RegisterJni");
73 return RegisterNativeMethods(env, kBaseRegisteredMethods,
74 arraysize(kBaseRegisteredMethods));
77 } // namespace android
78 } // namespace base