Java Code Examples for org.chromium.chrome.browser.preferences.PrefServiceBridge#javaScriptManaged()

The following examples show how to use org.chromium.chrome.browser.preferences.PrefServiceBridge#javaScriptManaged() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SiteSettingsCategory.java    From delion with Apache License 2.0 5 votes vote down vote up
/**
 * Returns whether the current category is managed either by enterprise policy or by the
 * custodian of a supervised account.
 */
public boolean isManaged() {
    PrefServiceBridge prefs = PrefServiceBridge.getInstance();
    if (showBackgroundSyncSites()) return prefs.isBackgroundSyncManaged();
    if (showCameraSites()) return !prefs.isCameraUserModifiable();
    if (showCookiesSites()) return prefs.isAcceptCookiesManaged();
    if (showFullscreenSites()) return prefs.isFullscreenManaged();
    if (showGeolocationSites()) {
        return !prefs.isAllowLocationUserModifiable();
    }
    if (showJavaScriptSites()) return prefs.javaScriptManaged();
    if (showMicrophoneSites()) return !prefs.isMicUserModifiable();
    if (showPopupSites()) return prefs.isPopupsManaged();
    return false;
}
 
Example 2
Source File: SiteSettingsCategory.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/**
 * Returns whether the current category is managed either by enterprise policy or by the
 * custodian of a supervised account.
 */
public boolean isManaged() {
    PrefServiceBridge prefs = PrefServiceBridge.getInstance();
    if (showBackgroundSyncSites()) return prefs.isBackgroundSyncManaged();
    if (showCameraSites()) return !prefs.isCameraUserModifiable();
    if (showCookiesSites()) return prefs.isAcceptCookiesManaged();
    if (showGeolocationSites()) {
        return !prefs.isAllowLocationUserModifiable();
    }
    if (showJavaScriptSites()) return prefs.javaScriptManaged();
    if (showMicrophoneSites()) return !prefs.isMicUserModifiable();
    if (showPopupSites()) return prefs.isPopupsManaged();
    return false;
}
 
Example 3
Source File: SiteSettingsCategory.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * Returns whether the current category is managed either by enterprise policy or by the
 * custodian of a supervised account.
 */
public boolean isManaged() {
    PrefServiceBridge prefs = PrefServiceBridge.getInstance();
    if (showBackgroundSyncSites()) return prefs.isBackgroundSyncManaged();
    if (showCookiesSites()) return !prefs.isAcceptCookiesUserModifiable();
    if (showGeolocationSites()) {
        return !prefs.isAllowLocationUserModifiable();
    }
    if (showJavaScriptSites()) return prefs.javaScriptManaged();
    if (showCameraSites()) return !prefs.isCameraUserModifiable();
    if (showMicrophoneSites()) return !prefs.isMicUserModifiable();
    if (showPopupSites()) return prefs.isPopupsManaged();
    return false;
}