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

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

Issue 2159223002: Fixed cloud policy refresh API to return correct value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review feedback Created 4 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_core.cc
diff --git a/components/policy/core/common/cloud/cloud_policy_core.cc b/components/policy/core/common/cloud/cloud_policy_core.cc
index c3a5ff06d81d33420b61226a50147a46419d50b7..a1085740f08f46657d7ff65967155e28b79ab81a 100644
--- a/components/policy/core/common/cloud/cloud_policy_core.cc
+++ b/components/policy/core/common/cloud/cloud_policy_core.cc
@@ -105,7 +105,7 @@ void CloudPolicyCore::RemoveObserver(CloudPolicyCore::Observer* observer) {
void CloudPolicyCore::UpdateRefreshDelayFromPref() {
if (refresh_scheduler_ && refresh_delay_)
- refresh_scheduler_->SetRefreshDelay(refresh_delay_->GetValue());
+ refresh_scheduler_->SetDesiredRefreshDelay(refresh_delay_->GetValue());
}
} // namespace policy
« no previous file with comments | « chrome/browser/ui/webui/policy_ui_handler.cc ('k') | components/policy/core/common/cloud/cloud_policy_core_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698