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

Unified Diff: android_webview/native/android_protocol_handler.cc

Issue 109023011: Do not use CalledByNativeUnchecked (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AndroidProtocolHandler.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « android_webview/java/src/org/chromium/android_webview/AndroidProtocolHandler.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698