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

Unified Diff: android_webview/glue/java/src/com/android/webview/chromium/reflection/WebViewConfig.java

Issue 2760543002: Add a new class as an entry-point for Java reflection (Closed)
Patch Set: Moving to a new package and updating the class comment Created 3 years, 9 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/glue/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/glue/java/src/com/android/webview/chromium/reflection/WebViewConfig.java
diff --git a/android_webview/glue/java/src/com/android/webview/chromium/reflection/WebViewConfig.java b/android_webview/glue/java/src/com/android/webview/chromium/reflection/WebViewConfig.java
new file mode 100644
index 0000000000000000000000000000000000000000..f24452373f98e3b619754f0fb9b88c00b3a2bcdb
--- /dev/null
+++ b/android_webview/glue/java/src/com/android/webview/chromium/reflection/WebViewConfig.java
@@ -0,0 +1,22 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+package com.android.webview.chromium.reflection;
+
+import org.chromium.android_webview.AwContentsStatics;
+import org.chromium.base.annotations.UsedByReflection;
+
+/**
+ * Entry points for reflection into Android WebView internals for static configuration.
+ *
+ * Methods in this class may be removed, but they should not be changed in any incompatible way.
+ * Methods should be removed when we no longer wish to expose the functionality.
+ */
+@UsedByReflection("")
+public class WebViewConfig {
+ @UsedByReflection("")
+ public static void disableSafeBrowsing() {
+ AwContentsStatics.setSafeBrowsingEnabled(false);
+ }
+}
« no previous file with comments | « android_webview/glue/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698