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

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: rebase Created 7 years, 9 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 <limits> 7 #include <limits>
8 8
9 #include "base/prefs/pref_value_map.h" 9 #include "base/prefs/pref_value_map.h"
10 #include "base/stl_util.h" 10 #include "base/stl_util.h"
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 Value::TYPE_BOOLEAN }, 315 Value::TYPE_BOOLEAN },
316 { key::kDisableScreenshots, 316 { key::kDisableScreenshots,
317 prefs::kDisableScreenshots, 317 prefs::kDisableScreenshots,
318 Value::TYPE_BOOLEAN }, 318 Value::TYPE_BOOLEAN },
319 { key::kAudioCaptureAllowed, 319 { key::kAudioCaptureAllowed,
320 prefs::kAudioCaptureAllowed, 320 prefs::kAudioCaptureAllowed,
321 Value::TYPE_BOOLEAN }, 321 Value::TYPE_BOOLEAN },
322 { key::kVideoCaptureAllowed, 322 { key::kVideoCaptureAllowed,
323 prefs::kVideoCaptureAllowed, 323 prefs::kVideoCaptureAllowed,
324 Value::TYPE_BOOLEAN }, 324 Value::TYPE_BOOLEAN },
325 { key::kHideWebStoreIcon,
326 prefs::kHideWebStoreIcon,
327 Value::TYPE_BOOLEAN },
325 328
326 #if defined(OS_CHROMEOS) 329 #if defined(OS_CHROMEOS)
327 { key::kChromeOsLockOnIdleSuspend, 330 { key::kChromeOsLockOnIdleSuspend,
328 prefs::kEnableScreenLock, 331 prefs::kEnableScreenLock,
329 Value::TYPE_BOOLEAN }, 332 Value::TYPE_BOOLEAN },
330 { key::kChromeOsReleaseChannel, 333 { key::kChromeOsReleaseChannel,
331 prefs::kChromeOsReleaseChannel, 334 prefs::kChromeOsReleaseChannel,
332 Value::TYPE_STRING }, 335 Value::TYPE_STRING },
333 { key::kDriveDisabled, 336 { key::kDriveDisabled,
334 prefs::kDisableDrive, 337 prefs::kDisableDrive,
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 525 }
523 526
524 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 527 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
525 PolicyMap* policies) const { 528 PolicyMap* policies) const {
526 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 529 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
527 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 530 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
528 (*handler)->PrepareForDisplaying(policies); 531 (*handler)->PrepareForDisplaying(policies);
529 } 532 }
530 533
531 } // namespace policy 534 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/policy/configuration_policy_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698