| Index: android_webview/native/android_protocol_handler.cc
|
| diff --git a/android_webview/native/android_protocol_handler.cc b/android_webview/native/android_protocol_handler.cc
|
| index e94c5580491c5042a22863fc897cd6920ad9af6b..256aa91cdf28f2c261c920a6c34d9de3dc84d617 100644
|
| --- a/android_webview/native/android_protocol_handler.cc
|
| +++ b/android_webview/native/android_protocol_handler.cc
|
| @@ -146,8 +146,7 @@ AndroidStreamReaderURLRequestJobDelegateImpl::OpenInputStream(
|
| GetResourceContext(env).obj(),
|
| jurl.obj());
|
|
|
| - // Check and clear pending exceptions.
|
| - if (ClearException(env) || stream.is_null()) {
|
| + if (stream.is_null()) {
|
| DLOG(ERROR) << "Unable to open input stream for Android URL";
|
| return scoped_ptr<InputStream>();
|
| }
|
| @@ -182,7 +181,7 @@ bool AndroidStreamReaderURLRequestJobDelegateImpl::GetMimeType(
|
| env,
|
| GetResourceContext(env).obj(),
|
| stream_impl->jobj(), url.obj());
|
| - if (ClearException(env) || returned_type.is_null())
|
| + if (returned_type.is_null())
|
| return false;
|
|
|
| *mime_type = base::android::ConvertJavaStringToUTF8(returned_type);
|
|
|