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

Unified Diff: android_webview/native/aw_contents.cc

Issue 22986033: [Android WebView] Add an API to toggle the JS navigator.online property (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 e6cf84111a1b4098d9374cb2ab6d15a93cc37173..dd8db0a43d62b20fe520441fc1157b3d888e1cab 100644
--- a/android_webview/native/aw_contents.cc
+++ b/android_webview/native/aw_contents.cc
@@ -780,4 +780,10 @@ void AwContents::EnableOnNewPicture(JNIEnv* env,
browser_view_renderer_->EnableOnNewPicture(enabled);
}
+void AwContents::SetJsOnlineProperty(JNIEnv* env,
+ jobject obj,
+ jboolean network_up) {
+ render_view_host_ext_->SetJsOnlineProperty(network_up);
+}
+
} // namespace android_webview

Powered by Google App Engine
This is Rietveld 408576698