| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |