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

Unified Diff: android_webview/browser/aw_contents.cc

Issue 2898593002: WebView: choose loud vs. quiet interstitial (Closed)
Patch Set: Rename test 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
Index: android_webview/browser/aw_contents.cc
diff --git a/android_webview/browser/aw_contents.cc b/android_webview/browser/aw_contents.cc
index 7e2006610458b66fc9f4b4e89c9a817e3865ad70..d45e64bdc8fe92f0679fa1cbc806f46475812033 100644
--- a/android_webview/browser/aw_contents.cc
+++ b/android_webview/browser/aw_contents.cc
@@ -1398,12 +1398,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(

Powered by Google App Engine
This is Rietveld 408576698