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

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

Issue 10542048: Add a group policy controlling which sites can install extensions. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: yozments Created 8 years, 6 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/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 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 handlers_.push_back(new SyncPolicyHandler()); 329 handlers_.push_back(new SyncPolicyHandler());
330 330
331 handlers_.push_back( 331 handlers_.push_back(
332 new ExtensionListPolicyHandler(key::kExtensionInstallWhitelist, 332 new ExtensionListPolicyHandler(key::kExtensionInstallWhitelist,
333 prefs::kExtensionInstallAllowList, 333 prefs::kExtensionInstallAllowList,
334 false)); 334 false));
335 handlers_.push_back( 335 handlers_.push_back(
336 new ExtensionListPolicyHandler(key::kExtensionInstallBlacklist, 336 new ExtensionListPolicyHandler(key::kExtensionInstallBlacklist,
337 prefs::kExtensionInstallDenyList, 337 prefs::kExtensionInstallDenyList,
338 true)); 338 true));
339 339
Mattias Nissler (ping if slow) 2012/06/08 09:38:22 drop the newline here so all the extension handler
340 handlers_.push_back(
341 new ExtensionURLPatternListPolicyHandler(
342 key::kExtensionInstallSources,
343 prefs::kExtensionAllowedInstallSites));
344
340 #if !defined(OS_CHROMEOS) 345 #if !defined(OS_CHROMEOS)
341 handlers_.push_back(new DownloadDirPolicyHandler()); 346 handlers_.push_back(new DownloadDirPolicyHandler());
342 #endif // !defined(OS_CHROMEOS) 347 #endif // !defined(OS_CHROMEOS)
343 348
344 #if defined(OS_CHROMEOS) 349 #if defined(OS_CHROMEOS)
345 handlers_.push_back( 350 handlers_.push_back(
346 new NetworkConfigurationPolicyHandler( 351 new NetworkConfigurationPolicyHandler(
347 key::kDeviceOpenNetworkConfiguration, 352 key::kDeviceOpenNetworkConfiguration,
348 chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY)); 353 chromeos::NetworkUIData::ONC_SOURCE_DEVICE_POLICY));
349 handlers_.push_back( 354 handlers_.push_back(
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 } 386 }
382 387
383 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 388 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
384 PolicyMap* policies) const { 389 PolicyMap* policies) const {
385 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 390 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
386 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 391 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
387 (*handler)->PrepareForDisplaying(policies); 392 (*handler)->PrepareForDisplaying(policies);
388 } 393 }
389 394
390 } // namespace policy 395 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698