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

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

Issue 7491099: Update base/android to use new ScopedJava(Global)Reference (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Also fix license headers Created 9 years, 4 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
« no previous file with comments | « no previous file | base/android/jni_array.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_android.h" 5 #include "base/android/jni_android.h"
6 6
7 #include "base/android/auto_jobject.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
9 8
10 namespace { 9 namespace {
11 JavaVM* g_jvm = 0; 10 JavaVM* g_jvm = 0;
12 jobject g_application_context = NULL; 11 jobject g_application_context = NULL;
13 } 12 }
14 13
15 namespace base { 14 namespace base {
16 namespace android { 15 namespace android {
17 16
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 bool CheckException(JNIEnv* env) { 59 bool CheckException(JNIEnv* env) {
61 if (env->ExceptionCheck() == JNI_FALSE) 60 if (env->ExceptionCheck() == JNI_FALSE)
62 return false; 61 return false;
63 env->ExceptionDescribe(); 62 env->ExceptionDescribe();
64 env->ExceptionClear(); 63 env->ExceptionClear();
65 return true; 64 return true;
66 } 65 }
67 66
68 } // namespace android 67 } // namespace android
69 } // namespace base 68 } // namespace base
OLDNEW
« no previous file with comments | « no previous file | base/android/jni_array.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698