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

Unified Diff: android_webview/native/aw_contents.cc

Issue 2833923002: WebView: carefully check size for SafeBrowsing interstitial (Closed)
Patch Set: Fix logic error and update comments Created 3 years, 8 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
Index: android_webview/native/aw_contents.cc
diff --git a/android_webview/native/aw_contents.cc b/android_webview/native/aw_contents.cc
index 5d348686112afc1623dec547e209268a2db50412..ca1bcbcdce62ce353a84e1b1d76963f0a3c36531 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -1415,6 +1415,14 @@ bool AwContents::CanShowInterstitial() {
return Java_AwContents_canShowInterstitial(env, obj);
}
+bool AwContents::CanShowBigInterstitial() {
+ JNIEnv* env = AttachCurrentThread();
+ const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return false;
+ return Java_AwContents_canShowBigInterstitial(env, obj);
+}
+
void AwContents::CallProceedOnInterstitialForTesting(
JNIEnv* env,
const base::android::JavaParamRef<jobject>& obj) {

Powered by Google App Engine
This is Rietveld 408576698