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

Side by Side Diff: chrome/browser/policy/cloud_policy_manager.cc

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments, merge to LKGR. Created 7 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 | Annotate | Revision Log
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 "chrome/browser/policy/cloud_policy_manager.h" 5 #include "chrome/browser/policy/cloud_policy_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/prefs/pref_service.h"
10 #include "chrome/browser/policy/cloud_policy_service.h" 11 #include "chrome/browser/policy/cloud_policy_service.h"
11 #include "chrome/browser/policy/policy_bundle.h" 12 #include "chrome/browser/policy/policy_bundle.h"
12 #include "chrome/browser/policy/policy_map.h" 13 #include "chrome/browser/policy/policy_map.h"
13 #include "chrome/browser/prefs/pref_service.h"
14 14
15 namespace policy { 15 namespace policy {
16 16
17 CloudPolicyManager::CloudPolicyManager(const PolicyNamespaceKey& policy_ns_key, 17 CloudPolicyManager::CloudPolicyManager(const PolicyNamespaceKey& policy_ns_key,
18 CloudPolicyStore* cloud_policy_store) 18 CloudPolicyStore* cloud_policy_store)
19 : core_(policy_ns_key, cloud_policy_store), 19 : core_(policy_ns_key, cloud_policy_store),
20 waiting_for_policy_refresh_(false) { 20 waiting_for_policy_refresh_(false) {
21 store()->AddObserver(this); 21 store()->AddObserver(this);
22 22
23 // If the underlying store is already initialized, publish the loaded 23 // If the underlying store is already initialized, publish the loaded
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 UpdatePolicy(bundle.Pass()); 75 UpdatePolicy(bundle.Pass());
76 } 76 }
77 } 77 }
78 78
79 void CloudPolicyManager::OnRefreshComplete(bool success) { 79 void CloudPolicyManager::OnRefreshComplete(bool success) {
80 waiting_for_policy_refresh_ = false; 80 waiting_for_policy_refresh_ = false;
81 CheckAndPublishPolicy(); 81 CheckAndPublishPolicy();
82 } 82 }
83 83
84 } // namespace policy 84 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_core.cc ('k') | chrome/browser/policy/device_cloud_policy_manager_chromeos_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698