Commit 45fabd32 authored by stepco@chromium.org's avatar stepco@chromium.org

Disable policy push feature by default in Android.

BUG=291251

Review URL: https://chromiumcodereview.appspot.com/24052004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@223417 0039d316-1c4b-4281-b951-d872f2087c98
parent 9986bcc0
...@@ -43,10 +43,17 @@ UserCloudPolicyInvalidatorFactory::~UserCloudPolicyInvalidatorFactory() {} ...@@ -43,10 +43,17 @@ UserCloudPolicyInvalidatorFactory::~UserCloudPolicyInvalidatorFactory() {}
BrowserContextKeyedService* BrowserContextKeyedService*
UserCloudPolicyInvalidatorFactory::BuildServiceInstanceFor( UserCloudPolicyInvalidatorFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const { content::BrowserContext* context) const {
#if defined(OS_ANDROID)
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableCloudPolicyPush)) {
return NULL;
}
#else
if (CommandLine::ForCurrentProcess()->HasSwitch( if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableCloudPolicyPush)) { switches::kDisableCloudPolicyPush)) {
return NULL; return NULL;
} }
#endif
Profile* profile = static_cast<Profile*>(context); Profile* profile = static_cast<Profile*>(context);
#if defined(OS_CHROMEOS) #if defined(OS_CHROMEOS)
......
...@@ -551,6 +551,9 @@ const char kEnableBatchedShutdown[] = "enable-batched-shutdown"; ...@@ -551,6 +551,9 @@ const char kEnableBatchedShutdown[] = "enable-batched-shutdown";
// Enables the benchmarking extensions. // Enables the benchmarking extensions.
const char kEnableBenchmarking[] = "enable-benchmarking"; const char kEnableBenchmarking[] = "enable-benchmarking";
// Enables pushing cloud policy to Chrome using an invalidation service.
const char kEnableCloudPolicyPush[] = "enable-cloud-policy-push";
// This applies only when the process type is "service". Enables the Cloud // This applies only when the process type is "service". Enables the Cloud
// Print Proxy component within the service process. // Print Proxy component within the service process.
const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy"; const char kEnableCloudPrintProxy[] = "enable-cloud-print-proxy";
......
...@@ -165,6 +165,7 @@ extern const char kEnableAuthNegotiatePort[]; ...@@ -165,6 +165,7 @@ extern const char kEnableAuthNegotiatePort[];
extern const char kEnableAutologin[]; extern const char kEnableAutologin[];
extern const char kEnableBatchedShutdown[]; extern const char kEnableBatchedShutdown[];
extern const char kEnableBenchmarking[]; extern const char kEnableBenchmarking[];
extern const char kEnableCloudPolicyPush[];
extern const char kEnableCloudPrintProxy[]; extern const char kEnableCloudPrintProxy[];
extern const char kEnableComponentCloudPolicy[]; extern const char kEnableComponentCloudPolicy[];
extern const char kEnableContacts[]; extern const char kEnableContacts[];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment