Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(597)

Side by Side Diff: base/android/base_jni_registrar.cc

Issue 10959020: SystemMonitor refactoring: move power state monitor into a separate class called PowerMonitor (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Use PowerMonitor instead of SystemMonitor in XXXMain function Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/power_monitor/power_monitor.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/android/base_jni_registrar.h" 5 #include "base/android/base_jni_registrar.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/android/build_info.h" 8 #include "base/android/build_info.h"
9 #include "base/android/cpu_features.h" 9 #include "base/android/cpu_features.h"
10 #include "base/android/important_file_writer_android.h" 10 #include "base/android/important_file_writer_android.h"
11 #include "base/android/jni_android.h" 11 #include "base/android/jni_android.h"
12 #include "base/android/jni_registrar.h" 12 #include "base/android/jni_registrar.h"
13 #include "base/android/locale_utils.h" 13 #include "base/android/locale_utils.h"
14 #include "base/android/path_service_android.h" 14 #include "base/android/path_service_android.h"
15 #include "base/android/path_utils.h" 15 #include "base/android/path_utils.h"
16 #include "base/android/thread_utils.h" 16 #include "base/android/thread_utils.h"
17 #include "base/message_pump_android.h" 17 #include "base/message_pump_android.h"
18 #include "base/system_monitor/system_monitor_android.h" 18 #include "base/power_monitor/power_monitor_android.h"
19 19
20 namespace base { 20 namespace base {
21 namespace android { 21 namespace android {
22 22
23 static RegistrationMethod kBaseRegisteredMethods[] = { 23 static RegistrationMethod kBaseRegisteredMethods[] = {
24 { "BuildInfo", base::android::BuildInfo::RegisterBindings }, 24 { "BuildInfo", base::android::BuildInfo::RegisterBindings },
25 { "CpuFeatures", base::android::RegisterCpuFeatures }, 25 { "CpuFeatures", base::android::RegisterCpuFeatures },
26 { "ImportantFileWriterAndroid", 26 { "ImportantFileWriterAndroid",
27 base::android::RegisterImportantFileWriterAndroid }, 27 base::android::RegisterImportantFileWriterAndroid },
28 { "LocaleUtils", base::android::RegisterLocaleUtils }, 28 { "LocaleUtils", base::android::RegisterLocaleUtils },
29 { "PathService", base::android::RegisterPathService }, 29 { "PathService", base::android::RegisterPathService },
30 { "PathUtils", base::android::RegisterPathUtils }, 30 { "PathUtils", base::android::RegisterPathUtils },
31 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings }, 31 { "SystemMessageHandler", base::MessagePumpForUI::RegisterBindings },
32 { "SystemMonitor", base::RegisterSystemMonitor }, 32 { "SystemMonitor", base::RegisterSystemMonitor },
vandebo (ex-Chrome) 2013/03/19 23:36:04 SysMon -> PowMon
Hongbo Min 2013/03/20 13:01:50 Done.
33 { "ThreadUtils", base::RegisterThreadUtils }, 33 { "ThreadUtils", base::RegisterThreadUtils },
34 }; 34 };
35 35
36 bool RegisterJni(JNIEnv* env) { 36 bool RegisterJni(JNIEnv* env) {
37 return RegisterNativeMethods(env, kBaseRegisteredMethods, 37 return RegisterNativeMethods(env, kBaseRegisteredMethods,
38 arraysize(kBaseRegisteredMethods)); 38 arraysize(kBaseRegisteredMethods));
39 } 39 }
40 40
41 } // namespace android 41 } // namespace android
42 } // namespace base 42 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/base.gyp » ('j') | base/power_monitor/power_monitor.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698