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 0e1cdb42bee8ed14f9efae5d4788b3711307bc00..5ab5a334242a2b70465eda9586ad118ad81eef42 100644 |
--- a/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc |
+++ b/chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc |
@@ -4,12 +4,10 @@ |
#include "chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.h" |
-#include "base/command_line.h" |
#include "chrome/browser/invalidation/invalidation_service_factory.h" |
#include "chrome/browser/policy/cloud/user_cloud_policy_invalidator.h" |
#include "chrome/browser/profiles/profile.h" |
#include "components/keyed_service/content/browser_context_dependency_manager.h" |
-#include "components/policy/core/common/policy_switches.h" |
#if defined(OS_CHROMEOS) |
#include "chrome/browser/chromeos/policy/user_cloud_policy_manager_chromeos.h" |
#include "chrome/browser/chromeos/policy/user_cloud_policy_manager_factory_chromeos.h" |
@@ -42,11 +40,6 @@ UserCloudPolicyInvalidatorFactory::~UserCloudPolicyInvalidatorFactory() {} |
KeyedService* UserCloudPolicyInvalidatorFactory::BuildServiceInstanceFor( |
content::BrowserContext* context) const { |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kDisableCloudPolicyPush)) { |
- return NULL; |
- } |
- |
Profile* profile = static_cast<Profile*>(context); |
#if defined(OS_CHROMEOS) |
CloudPolicyManager* policy_manager = |