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

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

Issue 7014036: Split the policy refresh rate preference into user- and device-policy refresh rate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 7 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/profile_policy_connector.cc
diff --git a/chrome/browser/policy/profile_policy_connector.cc b/chrome/browser/policy/profile_policy_connector.cc
index 5a83cb39875efb5b557417bb65e9c8f9fd671564..71b31f81d93e0c5e16b08fcac56de2a16b4dd076 100644
--- a/chrome/browser/policy/profile_policy_connector.cc
+++ b/chrome/browser/policy/profile_policy_connector.cc
@@ -17,6 +17,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/common/chrome_switches.h"
+#include "chrome/common/pref_names.h"
#include "net/url_request/url_request_context_getter.h"
namespace {
@@ -65,7 +66,7 @@ ProfilePolicyConnector::~ProfilePolicyConnector() {
void ProfilePolicyConnector::Initialize() {
// TODO(jkummerow, mnissler): Move this out of the browser startup path.
if (cloud_policy_subsystem_.get()) {
- cloud_policy_subsystem_->Initialize(profile_->GetPrefs(),
+ cloud_policy_subsystem_->Initialize(prefs::kUserPolicyRefreshRate,
profile_->GetRequestContext());
}
}

Powered by Google App Engine
This is Rietveld 408576698