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

Side by Side Diff: components/policy/core/common/cloud/cloud_policy_core.cc

Issue 1651203002: Update components for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/policy/core/common/cloud/cloud_policy_core.h" 5 #include "components/policy/core/common/cloud/cloud_policy_core.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/prefs/pref_service.h"
13 #include "components/policy/core/common/cloud/cloud_policy_client.h" 12 #include "components/policy/core/common/cloud/cloud_policy_client.h"
14 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h" 13 #include "components/policy/core/common/cloud/cloud_policy_refresh_scheduler.h"
15 #include "components/policy/core/common/cloud/cloud_policy_service.h" 14 #include "components/policy/core/common/cloud/cloud_policy_service.h"
16 #include "components/policy/core/common/cloud/cloud_policy_store.h" 15 #include "components/policy/core/common/cloud/cloud_policy_store.h"
17 #include "components/policy/core/common/remote_commands/remote_commands_factory. h" 16 #include "components/policy/core/common/remote_commands/remote_commands_factory. h"
18 #include "components/policy/core/common/remote_commands/remote_commands_service. h" 17 #include "components/policy/core/common/remote_commands/remote_commands_service. h"
18 #include "components/prefs/pref_service.h"
19 19
20 namespace policy { 20 namespace policy {
21 21
22 CloudPolicyCore::Observer::~Observer() {} 22 CloudPolicyCore::Observer::~Observer() {}
23 23
24 void CloudPolicyCore::Observer::OnRemoteCommandsServiceStarted( 24 void CloudPolicyCore::Observer::OnRemoteCommandsServiceStarted(
25 CloudPolicyCore* core) { 25 CloudPolicyCore* core) {
26 } 26 }
27 27
28 CloudPolicyCore::CloudPolicyCore( 28 CloudPolicyCore::CloudPolicyCore(
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void CloudPolicyCore::RemoveObserver(CloudPolicyCore::Observer* observer) { 102 void CloudPolicyCore::RemoveObserver(CloudPolicyCore::Observer* observer) {
103 observers_.RemoveObserver(observer); 103 observers_.RemoveObserver(observer);
104 } 104 }
105 105
106 void CloudPolicyCore::UpdateRefreshDelayFromPref() { 106 void CloudPolicyCore::UpdateRefreshDelayFromPref() {
107 if (refresh_scheduler_ && refresh_delay_) 107 if (refresh_scheduler_ && refresh_delay_)
108 refresh_scheduler_->SetRefreshDelay(refresh_delay_->GetValue()); 108 refresh_scheduler_->SetRefreshDelay(refresh_delay_->GetValue());
109 } 109 }
110 110
111 } // namespace policy 111 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698