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

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

Issue 7941008: Cosmetic cleanups in chrome/browser/policy/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Upload was broken? Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_provider_impl.h" 5 #include "chrome/browser/policy/cloud_policy_provider_impl.h"
6 6
7 #include <set>
8
9 #include "base/values.h"
10 #include "chrome/browser/policy/configuration_policy_pref_store.h" 7 #include "chrome/browser/policy/configuration_policy_pref_store.h"
11 8
12 namespace policy { 9 namespace policy {
13 10
14 CloudPolicyProviderImpl::CloudPolicyProviderImpl( 11 CloudPolicyProviderImpl::CloudPolicyProviderImpl(
15 const ConfigurationPolicyProvider::PolicyDefinitionList* policy_list, 12 const ConfigurationPolicyProvider::PolicyDefinitionList* policy_list,
16 CloudPolicyCacheBase::PolicyLevel level) 13 CloudPolicyCacheBase::PolicyLevel level)
17 : CloudPolicyProvider(policy_list), 14 : CloudPolicyProvider(policy_list),
18 level_(level), 15 level_(level),
19 initialization_complete_(true) {} 16 initialization_complete_(true) {}
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 if (newly_combined.Equals(combined_) && !force_update) 128 if (newly_combined.Equals(combined_) && !force_update)
132 return; 129 return;
133 130
134 // Trigger a notification if there was a change. 131 // Trigger a notification if there was a change.
135 combined_.Swap(&newly_combined); 132 combined_.Swap(&newly_combined);
136 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer, 133 FOR_EACH_OBSERVER(ConfigurationPolicyProvider::Observer,
137 observer_list_, OnUpdatePolicy()); 134 observer_list_, OnUpdatePolicy());
138 } 135 }
139 136
140 } // namespace policy 137 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/policy/cloud_policy_provider_impl.h ('k') | chrome/browser/policy/cloud_policy_subsystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698