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

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

Issue 375933002: Remove cloud policy refresh rate limit. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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.h
diff --git a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
index a0e409090b5f7b359a5411847cde82b3119147f0..efdb37b40e3a088e84838ac4edbe676e81eba036 100644
--- a/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
+++ b/components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h
@@ -11,7 +11,6 @@
#include "base/time/time.h"
#include "components/policy/core/common/cloud/cloud_policy_client.h"
#include "components/policy/core/common/cloud/cloud_policy_store.h"
-#include "components/policy/core/common/cloud/rate_limiter.h"
#include "components/policy/policy_export.h"
#include "net/base/network_change_notifier.h"
@@ -52,8 +51,7 @@ class POLICY_EXPORT CloudPolicyRefreshScheduler
// Sets the refresh delay to |refresh_delay| (subject to min/max clamping).
void SetRefreshDelay(int64 refresh_delay);
- // Requests a policy refresh to be performed soon. This may apply throttling,
- // and the request may not be immediately sent.
+ // Requests a policy refresh to be performed soon.
void RefreshSoon();
// The refresh scheduler starts by assuming that invalidations are not
@@ -121,9 +119,6 @@ class POLICY_EXPORT CloudPolicyRefreshScheduler
// The refresh delay.
int64 refresh_delay_ms_;
- // Used to limit the rate at which refreshes are scheduled.
- RateLimiter rate_limiter_;
-
// Whether the invalidations service is available and receiving notifications
// of policy updates.
bool invalidations_available_;
« no previous file with comments | « components/policy/core/common/BUILD.gn ('k') | components/policy/core/common/cloud/cloud_policy_refresh_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698