| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 package org.chromium.chrome.browser.preferences; | 5 package org.chromium.chrome.browser.preferences; |
| 6 | 6 |
| 7 import android.content.Context; | 7 import android.content.Context; |
| 8 import android.content.SharedPreferences; | 8 import android.content.SharedPreferences; |
| 9 import android.preference.PreferenceManager; | 9 import android.preference.PreferenceManager; |
| 10 import android.util.Log; | 10 import android.util.Log; |
| (...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 } | 323 } |
| 324 | 324 |
| 325 /** | 325 /** |
| 326 * @return whether JavaScript is managed by policy. | 326 * @return whether JavaScript is managed by policy. |
| 327 */ | 327 */ |
| 328 public boolean javaScriptManaged() { | 328 public boolean javaScriptManaged() { |
| 329 return isContentSettingManaged(ContentSettingsType.CONTENT_SETTINGS_TYPE
_JAVASCRIPT); | 329 return isContentSettingManaged(ContentSettingsType.CONTENT_SETTINGS_TYPE
_JAVASCRIPT); |
| 330 } | 330 } |
| 331 | 331 |
| 332 /** | 332 /** |
| 333 * @return true if Keygen is enabled. The default is false. |
| 334 */ |
| 335 public boolean keygenEnabled() { |
| 336 return isContentSettingEnabled(ContentSettingsType.CONTENT_SETTINGS_TYPE
_KEYGEN); |
| 337 } |
| 338 |
| 339 /** |
| 340 * @return whether Keygen is managed by policy. |
| 341 */ |
| 342 public boolean keygenManaged() { |
| 343 return isContentSettingManaged(ContentSettingsType.CONTENT_SETTINGS_TYPE
_KEYGEN); |
| 344 } |
| 345 |
| 346 /** |
| 333 * Sets the preference that controls protected media identifier. | 347 * Sets the preference that controls protected media identifier. |
| 334 */ | 348 */ |
| 335 public void setProtectedMediaIdentifierEnabled(boolean enabled) { | 349 public void setProtectedMediaIdentifierEnabled(boolean enabled) { |
| 336 nativeSetProtectedMediaIdentifierEnabled(enabled); | 350 nativeSetProtectedMediaIdentifierEnabled(enabled); |
| 337 } | 351 } |
| 338 | 352 |
| 339 /** | 353 /** |
| 340 * Sets the preference that controls translate | 354 * Sets the preference that controls translate |
| 341 */ | 355 */ |
| 342 public void setTranslateEnabled(boolean enabled) { | 356 public void setTranslateEnabled(boolean enabled) { |
| (...skipping 630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 973 private native String nativeGetSupervisedUserCustodianEmail(); | 987 private native String nativeGetSupervisedUserCustodianEmail(); |
| 974 private native String nativeGetSupervisedUserCustodianProfileImageURL(); | 988 private native String nativeGetSupervisedUserCustodianProfileImageURL(); |
| 975 private native int nativeGetDefaultSupervisedUserFilteringBehavior(); | 989 private native int nativeGetDefaultSupervisedUserFilteringBehavior(); |
| 976 private native String nativeGetSupervisedUserSecondCustodianName(); | 990 private native String nativeGetSupervisedUserSecondCustodianName(); |
| 977 private native String nativeGetSupervisedUserSecondCustodianEmail(); | 991 private native String nativeGetSupervisedUserSecondCustodianEmail(); |
| 978 private native String nativeGetSupervisedUserSecondCustodianProfileImageURL(
); | 992 private native String nativeGetSupervisedUserSecondCustodianProfileImageURL(
); |
| 979 private native boolean nativeGetMetricsReportingEnabled(); | 993 private native boolean nativeGetMetricsReportingEnabled(); |
| 980 private native void nativeSetMetricsReportingEnabled(boolean enabled); | 994 private native void nativeSetMetricsReportingEnabled(boolean enabled); |
| 981 private native boolean nativeHasSetMetricsReporting(); | 995 private native boolean nativeHasSetMetricsReporting(); |
| 982 } | 996 } |
| OLD | NEW |