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

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

Issue 8804020: Set onc_source UI data parameter when importing ONC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years 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/configuration_policy_handler_list.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list.h"
6 6
7 #include "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/configuration_policy_handler.h" 9 #include "chrome/browser/policy/configuration_policy_handler.h"
10 #include "chrome/browser/policy/policy_error_map.h" 10 #include "chrome/browser/policy/policy_error_map.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 handlers_.push_back(new ProxyPolicyHandler()); 224 handlers_.push_back(new ProxyPolicyHandler());
225 handlers_.push_back(new SyncPolicyHandler()); 225 handlers_.push_back(new SyncPolicyHandler());
226 226
227 #if !defined(OS_CHROMEOS) 227 #if !defined(OS_CHROMEOS)
228 handlers_.push_back(new DownloadDirPolicyHandler()); 228 handlers_.push_back(new DownloadDirPolicyHandler());
229 #endif // !defined(OS_CHROMEOS) 229 #endif // !defined(OS_CHROMEOS)
230 230
231 #if defined(OS_CHROMEOS) 231 #if defined(OS_CHROMEOS)
232 handlers_.push_back( 232 handlers_.push_back(
233 new NetworkConfigurationPolicyHandler( 233 new NetworkConfigurationPolicyHandler(
234 kPolicyDeviceOpenNetworkConfiguration)); 234 kPolicyDeviceOpenNetworkConfiguration,
235 chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY));
235 handlers_.push_back( 236 handlers_.push_back(
236 new NetworkConfigurationPolicyHandler( 237 new NetworkConfigurationPolicyHandler(
237 kPolicyOpenNetworkConfiguration)); 238 kPolicyOpenNetworkConfiguration,
239 chromeos::NetworkUIData::ONC_SOURCE_USER_POLICY));
238 #endif // defined(OS_CHROMEOS) 240 #endif // defined(OS_CHROMEOS)
239 } 241 }
240 242
241 ConfigurationPolicyHandlerList::~ConfigurationPolicyHandlerList() { 243 ConfigurationPolicyHandlerList::~ConfigurationPolicyHandlerList() {
242 STLDeleteElements(&handlers_); 244 STLDeleteElements(&handlers_);
243 } 245 }
244 246
245 void ConfigurationPolicyHandlerList::ApplyPolicySettings( 247 void ConfigurationPolicyHandlerList::ApplyPolicySettings(
246 const PolicyMap& policies, 248 const PolicyMap& policies,
247 PrefValueMap* prefs, 249 PrefValueMap* prefs,
(...skipping 17 matching lines...) Expand all
265 } 267 }
266 268
267 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 269 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
268 PolicyMap* policies) const { 270 PolicyMap* policies) const {
269 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 271 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
270 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 272 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
271 (*handler)->PrepareForDisplaying(policies); 273 (*handler)->PrepareForDisplaying(policies);
272 } 274 }
273 275
274 } // namespace policy 276 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698