Index: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc |
diff --git a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc |
index c8d4109d579a5f403c0bdc58b24d8205b926b7b7..ad221d184c8a3eb944121de9f1d628aee66bb232 100644 |
--- a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc |
+++ b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc |
@@ -8,14 +8,12 @@ |
#include "base/bind.h" |
#include "base/bind_helpers.h" |
-#include "base/command_line.h" |
#include "base/memory/scoped_ptr.h" |
#include "base/metrics/histogram.h" |
#include "base/sequenced_task_runner.h" |
#include "base/time/default_tick_clock.h" |
#include "base/time/tick_clock.h" |
#include "components/policy/core/common/cloud/cloud_policy_constants.h" |
-#include "components/policy/core/common/policy_switches.h" |
namespace policy { |
@@ -353,11 +351,6 @@ void CloudPolicyRefreshScheduler::WaitForInvalidationService() { |
base::Unretained(this))); |
base::TimeDelta delay = |
base::TimeDelta::FromSeconds(kWaitForInvalidationsTimeoutSeconds); |
- // Do not wait for the invalidation service if the feature is disabled. |
- if (CommandLine::ForCurrentProcess()->HasSwitch( |
- switches::kDisableCloudPolicyPush)) { |
- delay = base::TimeDelta(); |
- } |
task_runner_->PostDelayedTask( |
FROM_HERE, |
wait_for_invalidations_timeout_callback_.callback(), |