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

Unified Diff: chrome/browser/chromeos/policy/active_directory_policy_manager.cc

Issue 2937953002: Chromad: Drop delay for policy refresh on startup (Closed)
Patch Set: Created 3 years, 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/policy/active_directory_policy_manager.cc
diff --git a/chrome/browser/chromeos/policy/active_directory_policy_manager.cc b/chrome/browser/chromeos/policy/active_directory_policy_manager.cc
index 2c532255008272cd9a55a861f2b61fc5b65004a3..5b3ca717429139fb5a260f5da5227545c5f91f3d 100644
--- a/chrome/browser/chromeos/policy/active_directory_policy_manager.cc
+++ b/chrome/browser/chromeos/policy/active_directory_policy_manager.cc
@@ -22,10 +22,6 @@ namespace {
// https://technet.microsoft.com/en-us/library/cc940895.aspx
constexpr base::TimeDelta kRefreshInterval = base::TimeDelta::FromMinutes(90);
-// After startup, delay initial policy fetch to keep authpolicyd free for more
-// important tasks like user auth.
-constexpr base::TimeDelta kInitialFetchDelay = base::TimeDelta::FromSeconds(60);
-
// Retry delay in case of |refresh_in_progress_|.
constexpr base::TimeDelta kBusyRetryInterval = base::TimeDelta::FromSeconds(1);
@@ -154,7 +150,7 @@ void ActiveDirectoryPolicyManager::ScheduleAutomaticRefresh() {
interval = kBusyRetryInterval;
} else if (last_refresh_ == base::TimeTicks()) {
baseline = startup_;
- interval = kInitialFetchDelay;
+ interval = base::TimeDelta();
} else {
baseline = last_refresh_;
interval = kRefreshInterval;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698