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

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

Issue 11859029: Add a policy to hide the Web Store on new tabs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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/prefs/pref_value_map.h" 7 #include "base/prefs/pref_value_map.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/policy/configuration_policy_handler.h" 10 #include "chrome/browser/policy/configuration_policy_handler.h"
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
310 Value::TYPE_BOOLEAN }, 310 Value::TYPE_BOOLEAN },
311 { key::kDisableScreenshots, 311 { key::kDisableScreenshots,
312 prefs::kDisableScreenshots, 312 prefs::kDisableScreenshots,
313 Value::TYPE_BOOLEAN }, 313 Value::TYPE_BOOLEAN },
314 { key::kAudioCaptureAllowed, 314 { key::kAudioCaptureAllowed,
315 prefs::kAudioCaptureAllowed, 315 prefs::kAudioCaptureAllowed,
316 Value::TYPE_BOOLEAN }, 316 Value::TYPE_BOOLEAN },
317 { key::kVideoCaptureAllowed, 317 { key::kVideoCaptureAllowed,
318 prefs::kVideoCaptureAllowed, 318 prefs::kVideoCaptureAllowed,
319 Value::TYPE_BOOLEAN }, 319 Value::TYPE_BOOLEAN },
320 { key::kHideWebStoreIcon,
321 prefs::kHideWebStoreIcon,
322 Value::TYPE_BOOLEAN },
320 323
321 #if defined(OS_CHROMEOS) 324 #if defined(OS_CHROMEOS)
322 { key::kChromeOsLockOnIdleSuspend, 325 { key::kChromeOsLockOnIdleSuspend,
323 prefs::kEnableScreenLock, 326 prefs::kEnableScreenLock,
324 Value::TYPE_BOOLEAN }, 327 Value::TYPE_BOOLEAN },
325 { key::kChromeOsReleaseChannel, 328 { key::kChromeOsReleaseChannel,
326 prefs::kChromeOsReleaseChannel, 329 prefs::kChromeOsReleaseChannel,
327 Value::TYPE_STRING }, 330 Value::TYPE_STRING },
328 { key::kDriveDisabled, 331 { key::kDriveDisabled,
329 prefs::kDisableDrive, 332 prefs::kDisableDrive,
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 } 452 }
450 453
451 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 454 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
452 PolicyMap* policies) const { 455 PolicyMap* policies) const {
453 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 456 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
454 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 457 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
455 (*handler)->PrepareForDisplaying(policies); 458 (*handler)->PrepareForDisplaying(policies);
456 } 459 }
457 460
458 } // namespace policy 461 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698