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

Unified Diff: android_webview/browser/aw_contents.cc

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rebase, fix merge conflicts Created 3 years, 7 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/browser/aw_contents.h ('k') | android_webview/browser/aw_safe_browsing_blocking_page.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/browser/aw_contents.cc
diff --git a/android_webview/browser/aw_contents.cc b/android_webview/browser/aw_contents.cc
index 1b9c743019a16b8484e6adefbe74dab513e44048..f03fd656b7a4596b2f4ec807d8862dab82175100 100644
--- a/android_webview/browser/aw_contents.cc
+++ b/android_webview/browser/aw_contents.cc
@@ -1397,12 +1397,20 @@ void AwContents::DidDetachInterstitialPage() {
browser_view_renderer_.SetActiveCompositorID(compositor_id);
}
-bool AwContents::CanShowBigInterstitial() {
+bool AwContents::CanShowInterstitial() {
JNIEnv* env = AttachCurrentThread();
const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
if (obj.is_null())
return false;
- return Java_AwContents_canShowBigInterstitial(env, obj);
+ return Java_AwContents_canShowInterstitial(env, obj);
+}
+
+int AwContents::GetErrorUiType() {
+ JNIEnv* env = AttachCurrentThread();
+ const ScopedJavaLocalRef<jobject> obj = java_ref_.get(env);
+ if (obj.is_null())
+ return false;
+ return Java_AwContents_getErrorUiType(env, obj);
}
void AwContents::CallProceedOnInterstitialForTesting(
« no previous file with comments | « android_webview/browser/aw_contents.h ('k') | android_webview/browser/aw_safe_browsing_blocking_page.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698