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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java

Issue 1432573002: Adding <keygen> Content Setting (Android UI) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@keygen_ui
Patch Set: Update UI strings. Created 5 years, 1 month 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: chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
index c5c1564f934cc2c01e0cd420b0881b04861c3966..89151de97df5f3a1f975bae0749bc948a2b8bf43 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/preferences/PrefServiceBridge.java
@@ -330,6 +330,20 @@ public final class PrefServiceBridge {
}
/**
+ * @return true if Keygen is enabled. The default is false.
+ */
+ public boolean keygenEnabled() {
+ return isContentSettingEnabled(ContentSettingsType.CONTENT_SETTINGS_TYPE_KEYGEN);
+ }
+
+ /**
+ * @return whether Keygen is managed by policy.
+ */
+ public boolean keygenManaged() {
+ return isContentSettingManaged(ContentSettingsType.CONTENT_SETTINGS_TYPE_KEYGEN);
+ }
+
+ /**
* Sets the preference that controls protected media identifier.
*/
public void setProtectedMediaIdentifierEnabled(boolean enabled) {

Powered by Google App Engine
This is Rietveld 408576698