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) { |