Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7472)

Unified Diff: chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc

Issue 24052004: Disable policy push feature by default in Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc
diff --git a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc
index 2e6e767fa22cf9dac88f64af767965335ed6bd48..272228148bb25bf09a7334a7f593a965e36ccebd 100644
--- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc
+++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc
@@ -43,10 +43,17 @@ UserCloudPolicyInvalidatorFactory::~UserCloudPolicyInvalidatorFactory() {}
BrowserContextKeyedService*
UserCloudPolicyInvalidatorFactory::BuildServiceInstanceFor(
content::BrowserContext* context) const {
+#if defined(OS_ANDROID)
+ if (!CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableCloudPolicyPush)) {
+ return NULL;
+ }
+#else
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kDisableCloudPolicyPush)) {
+ switches::kDisableCloudPolicyPush)) {
return NULL;
}
+#endif
Profile* profile = static_cast<Profile*>(context);
#if defined(OS_CHROMEOS)
« no previous file with comments | « no previous file | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698