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

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

Issue 2145443002: Revert of Android: Add support for TraceEvent before the native library is loaded. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | « base/BUILD.gn ('k') | base/android/early_trace_event_binding.h » ('j') | no next file with comments »
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/android/animation_frame_time_histogram.h" 7 #include "base/android/animation_frame_time_histogram.h"
8 #include "base/android/apk_assets.h" 8 #include "base/android/apk_assets.h"
9 #include "base/android/application_status_listener.h" 9 #include "base/android/application_status_listener.h"
10 #include "base/android/build_info.h" 10 #include "base/android/build_info.h"
11 #include "base/android/callback_android.h" 11 #include "base/android/callback_android.h"
12 #include "base/android/command_line_android.h" 12 #include "base/android/command_line_android.h"
13 #include "base/android/content_uri_utils.h" 13 #include "base/android/content_uri_utils.h"
14 #include "base/android/context_utils.h" 14 #include "base/android/context_utils.h"
15 #include "base/android/cpu_features.h" 15 #include "base/android/cpu_features.h"
16 #include "base/android/early_trace_event_binding.h"
17 #include "base/android/event_log.h" 16 #include "base/android/event_log.h"
18 #include "base/android/field_trial_list.h" 17 #include "base/android/field_trial_list.h"
19 #include "base/android/important_file_writer_android.h" 18 #include "base/android/important_file_writer_android.h"
20 #include "base/android/java_handler_thread.h" 19 #include "base/android/java_handler_thread.h"
21 #include "base/android/java_runtime.h" 20 #include "base/android/java_runtime.h"
22 #include "base/android/jni_android.h" 21 #include "base/android/jni_android.h"
23 #include "base/android/jni_registrar.h" 22 #include "base/android/jni_registrar.h"
24 #include "base/android/jni_utils.h" 23 #include "base/android/jni_utils.h"
25 #include "base/android/locale_utils.h" 24 #include "base/android/locale_utils.h"
26 #include "base/android/memory_pressure_listener_android.h" 25 #include "base/android/memory_pressure_listener_android.h"
(...skipping 17 matching lines...) Expand all
44 base::android::RegisterAnimationFrameTimeHistogram}, 43 base::android::RegisterAnimationFrameTimeHistogram},
45 {"ApkAssets", base::android::RegisterApkAssets}, 44 {"ApkAssets", base::android::RegisterApkAssets},
46 {"ApplicationStatusListener", 45 {"ApplicationStatusListener",
47 base::android::ApplicationStatusListener::RegisterBindings}, 46 base::android::ApplicationStatusListener::RegisterBindings},
48 {"BuildInfo", base::android::BuildInfo::RegisterBindings}, 47 {"BuildInfo", base::android::BuildInfo::RegisterBindings},
49 {"CallbackAndroid", base::android::RegisterCallbackAndroid}, 48 {"CallbackAndroid", base::android::RegisterCallbackAndroid},
50 {"CommandLine", base::android::RegisterCommandLine}, 49 {"CommandLine", base::android::RegisterCommandLine},
51 {"ContentUriUtils", base::RegisterContentUriUtils}, 50 {"ContentUriUtils", base::RegisterContentUriUtils},
52 {"ContextUtils", base::android::RegisterContextUtils}, 51 {"ContextUtils", base::android::RegisterContextUtils},
53 {"CpuFeatures", base::android::RegisterCpuFeatures}, 52 {"CpuFeatures", base::android::RegisterCpuFeatures},
54 {"EarlyTraceEvent", base::android::RegisterEarlyTraceEvent},
55 {"EventLog", base::android::RegisterEventLog}, 53 {"EventLog", base::android::RegisterEventLog},
56 {"FieldTrialList", base::android::RegisterFieldTrialList}, 54 {"FieldTrialList", base::android::RegisterFieldTrialList},
57 {"ImportantFileWriterAndroid", 55 {"ImportantFileWriterAndroid",
58 base::android::RegisterImportantFileWriterAndroid}, 56 base::android::RegisterImportantFileWriterAndroid},
59 {"JNIUtils", base::android::RegisterJNIUtils}, 57 {"JNIUtils", base::android::RegisterJNIUtils},
60 {"LocaleUtils", base::android::RegisterLocaleUtils}, 58 {"LocaleUtils", base::android::RegisterLocaleUtils},
61 {"MemoryPressureListenerAndroid", 59 {"MemoryPressureListenerAndroid",
62 base::android::MemoryPressureListenerAndroid::Register}, 60 base::android::MemoryPressureListenerAndroid::Register},
63 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings}, 61 {"JavaHandlerThread", base::android::JavaHandlerThread::RegisterBindings},
64 {"PathService", base::android::RegisterPathService}, 62 {"PathService", base::android::RegisterPathService},
65 {"PathUtils", base::android::RegisterPathUtils}, 63 {"PathUtils", base::android::RegisterPathUtils},
66 {"PowerMonitor", base::RegisterPowerMonitor}, 64 {"PowerMonitor", base::RegisterPowerMonitor},
67 {"RecordHistogram", base::android::RegisterRecordHistogram}, 65 {"RecordHistogram", base::android::RegisterRecordHistogram},
68 {"RecordUserAction", base::android::RegisterRecordUserAction}, 66 {"RecordUserAction", base::android::RegisterRecordUserAction},
69 {"Runtime", base::android::JavaRuntime::Register}, 67 {"Runtime", base::android::JavaRuntime::Register},
70 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings}, 68 {"SystemMessageHandler", base::MessagePumpForUI::RegisterBindings},
71 {"SysUtils", base::android::SysUtils::Register}, 69 {"SysUtils", base::android::SysUtils::Register},
72 {"ThreadUtils", base::RegisterThreadUtils}, 70 {"ThreadUtils", base::RegisterThreadUtils},
73 {"TraceEvent", base::android::RegisterTraceEvent}, 71 {"TraceEvent", base::android::RegisterTraceEvent},
74 }; 72 };
75 73
76 bool RegisterJni(JNIEnv* env) { 74 bool RegisterJni(JNIEnv* env) {
77 TRACE_EVENT0("startup", "base_android::RegisterJni"); 75 TRACE_EVENT0("startup", "base_android::RegisterJni");
78 return RegisterNativeMethods(env, kBaseRegisteredMethods, 76 return RegisterNativeMethods(env, kBaseRegisteredMethods,
79 arraysize(kBaseRegisteredMethods)); 77 arraysize(kBaseRegisteredMethods));
80 } 78 }
81 79
82 } // namespace android 80 } // namespace android
83 } // namespace base 81 } // namespace base
OLDNEW
« no previous file with comments | « base/BUILD.gn ('k') | base/android/early_trace_event_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698