| Index: android_webview/native/input_stream_impl.cc
|
| diff --git a/android_webview/native/input_stream_impl.cc b/android_webview/native/input_stream_impl.cc
|
| index 5272ee54c1852bede7ba500fe7a240b2903d300a..515cb51cedeea4b0eca25ec97804ed89863b1300 100644
|
| --- a/android_webview/native/input_stream_impl.cc
|
| +++ b/android_webview/native/input_stream_impl.cc
|
| @@ -37,6 +37,9 @@ const InputStreamImpl* InputStreamImpl::FromInputStream(
|
| return static_cast<const InputStreamImpl*>(input_stream);
|
| }
|
|
|
| +// TODO: Use unsafe version for all Java_InputStream methods in this file
|
| +// once BUG 157880 is fixed and implement graceful exception handling.
|
| +
|
| InputStreamImpl::InputStreamImpl() {
|
| }
|
|
|
| @@ -48,13 +51,10 @@ InputStreamImpl::InputStreamImpl(const JavaRef<jobject>& stream)
|
| InputStreamImpl::~InputStreamImpl() {
|
| JNIEnv* env = AttachCurrentThread();
|
| Java_InputStream_close(env, jobject_.obj());
|
| - DCHECK(!ClearException(env));
|
| }
|
|
|
| bool InputStreamImpl::BytesAvailable(int* bytes_available) const {
|
| JNIEnv* env = AttachCurrentThread();
|
| - // TODO: Use unsafe version for all Java_InputStream methods in this file
|
| - // once BUG 157880 is fixed.
|
| int bytes = Java_InputStream_available(env, jobject_.obj());
|
| if (ClearException(env))
|
| return false;
|
|
|