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

Unified Diff: chrome/browser/policy/policy_statistics_collector.cc

Issue 27536003: Moved prefs::kUserPolicyRefreshRate to component/policy/policy_pref_names. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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: chrome/browser/policy/policy_statistics_collector.cc
diff --git a/chrome/browser/policy/policy_statistics_collector.cc b/chrome/browser/policy/policy_statistics_collector.cc
index fb648a17aa6baf2cc96e73426b342b090327df83..e972c947c83fb6fa044b1b90174c1070794cd0d6 100644
--- a/chrome/browser/policy/policy_statistics_collector.cc
+++ b/chrome/browser/policy/policy_statistics_collector.cc
@@ -41,7 +41,7 @@ void PolicyStatisticsCollector::Initialize() {
TimeDelta update_rate = TimeDelta::FromMilliseconds(kStatisticsUpdateRate);
Time last_update = Time::FromInternalValue(
- prefs_->GetInt64(prefs::kLastPolicyStatisticsUpdate));
+ prefs_->GetInt64(policy_prefs::kLastPolicyStatisticsUpdate));
TimeDelta delay = std::max(Time::Now() - last_update, TimeDelta::FromDays(0));
if (delay >= update_rate)
CollectStatistics();
@@ -51,7 +51,7 @@ void PolicyStatisticsCollector::Initialize() {
// static
void PolicyStatisticsCollector::RegisterPrefs(PrefRegistrySimple* registry) {
- registry->RegisterInt64Pref(prefs::kLastPolicyStatisticsUpdate, 0);
+ registry->RegisterInt64Pref(policy_prefs::kLastPolicyStatisticsUpdate, 0);
}
void PolicyStatisticsCollector::RecordPolicyUse(int id) {
@@ -86,7 +86,7 @@ void PolicyStatisticsCollector::CollectStatistics() {
}
// Take care of next update.
- prefs_->SetInt64(prefs::kLastPolicyStatisticsUpdate,
+ prefs_->SetInt64(policy_prefs::kLastPolicyStatisticsUpdate,
base::Time::Now().ToInternalValue());
ScheduleUpdate(base::TimeDelta::FromMilliseconds(kStatisticsUpdateRate));
}

Powered by Google App Engine
This is Rietveld 408576698