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

The following examples show how to use org.chromium.chrome.browser.preferences.PrefServiceBridge#isInitialized() . 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: PrivacyPreferencesManager.java    From AndroidChromium with Apache License 2.0 5 votes vote down vote up
/**
 * Update usage and crash preferences based on Android preferences if possible in case they are
 * out of sync.
 */
public void syncUsageAndCrashReportingPrefs() {
    if (PrefServiceBridge.isInitialized()) {
        PrefServiceBridge.getInstance().setMetricsReportingEnabled(
                isUsageAndCrashReportingPermittedByUser());
    }
}
 
Example 2
Source File: PrivacyPreferencesManager.java    From 365browser with Apache License 2.0 5 votes vote down vote up
/**
 * Update usage and crash preferences based on Android preferences if possible in case they are
 * out of sync.
 */
public void syncUsageAndCrashReportingPrefs() {
    if (PrefServiceBridge.isInitialized()) {
        PrefServiceBridge.getInstance().setMetricsReportingEnabled(
                isUsageAndCrashReportingPermittedByUser());
    }
}