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

Unified Diff: components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc

Issue 206133006: Remove disable-cloud-policy-push flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 9 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
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(),
« no previous file with comments | « chrome/browser/policy/cloud/user_cloud_policy_invalidator_factory.cc ('k') | components/policy/core/common/policy_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698