Speculative fix for the white/stale tab issue on Windows.
[chromium-blink-merge.git] / base / android / jni_registrar.cc
blobfb399461a07f61bdeb3a2835f164677740c0fbc7
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/jni_registrar.h"
7 #include "base/logging.h"
8 #include "base/android/jni_android.h"
10 namespace base {
11 namespace android {
13 bool RegisterNativeMethods(JNIEnv* env,
14 const RegistrationMethod* method,
15 size_t count) {
16 const RegistrationMethod* end = method + count;
17 while (method != end) {
18 if (!method->func(env)) {
19 DLOG(ERROR) << method->name << " failed registration!";
20 return false;
22 method++;
24 return true;
27 } // namespace android
28 } // namespace base