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

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

Issue 10035034: Implement the skeleton of an android content shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed drawable png as it was checked in separately. Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "base/android/jni_registrar.h"
6
7 #include "base/logging.h"
8 #include "base/android/jni_android.h"
9
10 namespace base {
11 namespace android {
12
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) < 0) {
19 DLOG(ERROR) << method->name << " failed registration!";
20 return false;
21 }
22 method++;
23 }
24 return true;
25 }
26
27 } // namespace android
28 } // namespace base
OLDNEW
« base/android/jni_registrar.h ('K') | « base/android/jni_registrar.h ('k') | base/base.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698