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

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

Issue 14329002: Chrome OS device policy for Variations Restrict Parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 Value::TYPE_BOOLEAN }, 320 Value::TYPE_BOOLEAN },
321 { key::kAudioCaptureAllowed, 321 { key::kAudioCaptureAllowed,
322 prefs::kAudioCaptureAllowed, 322 prefs::kAudioCaptureAllowed,
323 Value::TYPE_BOOLEAN }, 323 Value::TYPE_BOOLEAN },
324 { key::kVideoCaptureAllowed, 324 { key::kVideoCaptureAllowed,
325 prefs::kVideoCaptureAllowed, 325 prefs::kVideoCaptureAllowed,
326 Value::TYPE_BOOLEAN }, 326 Value::TYPE_BOOLEAN },
327 { key::kHideWebStoreIcon, 327 { key::kHideWebStoreIcon,
328 prefs::kHideWebStoreIcon, 328 prefs::kHideWebStoreIcon,
329 Value::TYPE_BOOLEAN }, 329 Value::TYPE_BOOLEAN },
330
331 #if !defined(OS_CHROMEOS)
330 { key::kVariationsRestrictParameter, 332 { key::kVariationsRestrictParameter,
331 prefs::kVariationsRestrictParameter, 333 prefs::kVariationsRestrictParameter,
332 Value::TYPE_STRING }, 334 Value::TYPE_STRING },
335 #endif
333 336
334 #if defined(OS_CHROMEOS) 337 #if defined(OS_CHROMEOS)
335 { key::kChromeOsLockOnIdleSuspend, 338 { key::kChromeOsLockOnIdleSuspend,
336 prefs::kEnableScreenLock, 339 prefs::kEnableScreenLock,
337 Value::TYPE_BOOLEAN }, 340 Value::TYPE_BOOLEAN },
338 { key::kChromeOsReleaseChannel, 341 { key::kChromeOsReleaseChannel,
339 prefs::kChromeOsReleaseChannel, 342 prefs::kChromeOsReleaseChannel,
340 Value::TYPE_STRING }, 343 Value::TYPE_STRING },
341 { key::kDriveDisabled, 344 { key::kDriveDisabled,
342 prefs::kDisableDrive, 345 prefs::kDisableDrive,
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 } 544 }
542 545
543 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 546 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
544 PolicyMap* policies) const { 547 PolicyMap* policies) const {
545 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 548 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
546 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 549 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
547 (*handler)->PrepareForDisplaying(policies); 550 (*handler)->PrepareForDisplaying(policies);
548 } 551 }
549 552
550 } // namespace policy 553 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698