Moved prefs::kUserPolicyRefreshRate to component/policy/policy_pref_names.

This removes a couple more DEPS exceptions from the policy code, and prepares it
for the move into a component.

Also renamed policy::prefs namespace to policy::policy_prefs, so that code in
the policy namespace can refer both to policy_prefs:: and (global) prefs::
without having to prefix ::prefs::.

Also removed a couple of obsolete DEPS exceptions.

BUG=271392
R=dconnelly@chromium.org

Review URL: https://codereview.chromium.org/27536003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229339 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: 218b6266d93006d9c63679363347492c0ddb2004
diff --git a/components/policy/core/common/policy_pref_names.cc b/components/policy/core/common/policy_pref_names.cc
index ca86fcd..4dda07a 100644
--- a/components/policy/core/common/policy_pref_names.cc
+++ b/components/policy/core/common/policy_pref_names.cc
@@ -5,11 +5,16 @@
 #include "components/policy/core/common/policy_pref_names.h"
 
 namespace policy {
-namespace prefs {
+namespace policy_prefs {
 
 // 64-bit serialization of the time last policy usage statistics were collected
 // by UMA_HISTOGRAM_ENUMERATION.
 const char kLastPolicyStatisticsUpdate[] = "policy.last_statistics_update";
 
-}  // namespace prefs
+// Integer that specifies the policy refresh rate for user-policy in
+// milliseconds. Not all values are meaningful, so it is clamped to a sane range
+// by the cloud policy subsystem.
+const char kUserPolicyRefreshRate[] = "policy.user_refresh_rate";
+
+}  // namespace policy_prefs
 }  // namespace policy
diff --git a/components/policy/core/common/policy_pref_names.h b/components/policy/core/common/policy_pref_names.h
index 7e83c06..5ebcef6 100644
--- a/components/policy/core/common/policy_pref_names.h
+++ b/components/policy/core/common/policy_pref_names.h
@@ -8,14 +8,16 @@
 #include "components/policy/policy_export.h"
 
 namespace policy {
-namespace prefs {
+namespace policy_prefs {
 
 // Constants for the names of policy-related preferences.
-// TODO(dconnelly): remove POLICY_EXPORT once the statistics collector moves
-// to the policy component (crbug.com/271392).
-POLICY_EXPORT extern const char kLastPolicyStatisticsUpdate[];
+// TODO(dconnelly): remove POLICY_EXPORT once the policy code moves to the
+// policy component (crbug.com/271392).
 
-}  // prefs
+POLICY_EXPORT extern const char kLastPolicyStatisticsUpdate[];
+POLICY_EXPORT extern const char kUserPolicyRefreshRate[];
+
+}  // namespace policy_prefs
 }  // namespace policy
 
 #endif  // COMPONENTS_POLICY_CORE_COMMON_POLICY_PREF_NAMES_H_