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

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

Issue 893593002: Mechanical rename of tracing includes for /base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
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/jni_registrar.h" 5 #include "base/android/jni_registrar.h"
6 6
7 #include "base/debug/trace_event.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 #include "base/android/jni_android.h" 8 #include "base/android/jni_android.h"
9 #include "base/trace_event/trace_event.h"
10 10
11 namespace base { 11 namespace base {
12 namespace android { 12 namespace android {
13 13
14 bool RegisterNativeMethods(JNIEnv* env, 14 bool RegisterNativeMethods(JNIEnv* env,
15 const RegistrationMethod* method, 15 const RegistrationMethod* method,
16 size_t count) { 16 size_t count) {
17 TRACE_EVENT0("startup", "base_android::RegisterNativeMethods") 17 TRACE_EVENT0("startup", "base_android::RegisterNativeMethods")
18 const RegistrationMethod* end = method + count; 18 const RegistrationMethod* end = method + count;
19 while (method != end) { 19 while (method != end) {
20 if (!method->func(env)) { 20 if (!method->func(env)) {
21 DLOG(ERROR) << method->name << " failed registration!"; 21 DLOG(ERROR) << method->name << " failed registration!";
22 return false; 22 return false;
23 } 23 }
24 method++; 24 method++;
25 } 25 }
26 return true; 26 return true;
27 } 27 }
28 28
29 } // namespace android 29 } // namespace android
30 } // namespace base 30 } // namespace base
OLDNEW
« no previous file with comments | « base/android/java/src/org/chromium/base/TraceEvent.java ('k') | base/android/trace_event_binding.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698