| Index: base/android/jni_android.h
|
| diff --git a/base/android/jni_android.h b/base/android/jni_android.h
|
| index a5571e023fb87060a3b410d18eccb7124135fad9..a093b0b684d964edccb5917bef58540f07cf6958 100644
|
| --- a/base/android/jni_android.h
|
| +++ b/base/android/jni_android.h
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -67,9 +67,15 @@ jfieldID GetFieldID(JNIEnv* env,
|
| const char* field,
|
| const char* jni_signature);
|
|
|
| -// Returns true if an exception is pending in the provided JNIEnv*. If an
|
| -// exception is pending, this function prints and then clears it.
|
| -bool CheckException(JNIEnv* env);
|
| +// Returns true if an exception is pending in the provided JNIEnv*.
|
| +bool HasException(JNIEnv* env);
|
| +
|
| +// If an exception is pending in the provided JNIEnv*, this function clears it
|
| +// and returns true.
|
| +bool ClearException(JNIEnv* env);
|
| +
|
| +// This function will call CHECK() macro if there's any pending exception.
|
| +void CheckException(JNIEnv* env);
|
|
|
| } // namespace android
|
| } // namespace base
|
|
|