org.chromium.policy.AppRestrictionsProvider Java Examples

The following examples show how to use org.chromium.policy.AppRestrictionsProvider. 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: AppHooks.java    From 365browser with Apache License 2.0 4 votes vote down vote up
public void registerPolicyProviders(CombinedPolicyProvider combinedProvider) {
    combinedProvider.registerProvider(
            new AppRestrictionsProvider(ContextUtils.getApplicationContext()));
}
 
Example #2
Source File: ChromeApplication.java    From delion with Apache License 2.0 2 votes vote down vote up
/**
 * Registers various policy providers with the policy manager.
 * Providers are registered in increasing order of precedence so overrides should call this
 * method in the end for this method to maintain the highest precedence.
 * @param combinedProvider The {@link CombinedPolicyProvider} to register the providers with.
 */
public void registerPolicyProviders(CombinedPolicyProvider combinedProvider) {
    combinedProvider.registerProvider(new AppRestrictionsProvider(getApplicationContext()));
}
 
Example #3
Source File: ChromeApplication.java    From AndroidChromium with Apache License 2.0 2 votes vote down vote up
/**
 * Registers various policy providers with the policy manager.
 * Providers are registered in increasing order of precedence so overrides should call this
 * method in the end for this method to maintain the highest precedence.
 * @param combinedProvider The {@link CombinedPolicyProvider} to register the providers with.
 */
public void registerPolicyProviders(CombinedPolicyProvider combinedProvider) {
    combinedProvider.registerProvider(new AppRestrictionsProvider(getApplicationContext()));
}