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

Unified Diff: android_webview/native/aw_contents_statics.cc

Issue 281563002: [Android WebView] Filter out error page URL from onPageFinished to un-flake tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore import of Runnable Created 6 years, 6 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/javatests/src/org/chromium/android_webview/test/ClientOnPageStartedTest.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/aw_contents_statics.cc
diff --git a/android_webview/native/aw_contents_statics.cc b/android_webview/native/aw_contents_statics.cc
index 70525af144ae0d83f7727304bd8695feb1fca7cf..b1fdcbb8dba10a8ddc9df8155f756e45ad506492 100644
--- a/android_webview/native/aw_contents_statics.cc
+++ b/android_webview/native/aw_contents_statics.cc
@@ -10,6 +10,7 @@
#include "base/callback.h"
#include "components/data_reduction_proxy/browser/data_reduction_proxy_settings.h"
#include "content/public/browser/browser_thread.h"
+#include "content/public/common/url_constants.h"
#include "jni/AwContentsStatics_jni.h"
#include "net/cert/cert_database.h"
@@ -63,6 +64,12 @@ void SetDataReductionProxyEnabled(JNIEnv* env, jclass, jboolean enabled) {
AwBrowserContext::SetDataReductionProxyEnabled(enabled);
}
+// static
+jstring GetUnreachableWebDataUrl(JNIEnv* env, jclass) {
+ return base::android::ConvertUTF8ToJavaString(
+ env, content::kUnreachableWebDataURL).Release();
+}
+
bool RegisterAwContentsStatics(JNIEnv* env) {
return RegisterNativesImpl(env);
}
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/ClientOnPageStartedTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698