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

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

Issue 17408010: Replace PresentationIdleDelayScale with PresentationScreenDimDelayScale (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 7 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 <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 519 matching lines...) Expand 10 before | Expand all | Expand 10 after
530 key::kIdleAction, 530 key::kIdleAction,
531 prefs::kPowerIdleAction, 531 prefs::kPowerIdleAction,
532 0, 3, false)); 532 0, 3, false));
533 handlers_.push_back( 533 handlers_.push_back(
534 new IntRangePolicyHandler( 534 new IntRangePolicyHandler(
535 key::kLidCloseAction, 535 key::kLidCloseAction,
536 prefs::kPowerLidClosedAction, 536 prefs::kPowerLidClosedAction,
537 0, 3, false)); 537 0, 3, false));
538 handlers_.push_back( 538 handlers_.push_back(
539 new IntPercentageToDoublePolicyHandler( 539 new IntPercentageToDoublePolicyHandler(
540 key::kPresentationIdleDelayScale, 540 key::kPresentationScreenDimDelayScale,
541 prefs::kPowerPresentationIdleDelayFactor, 541 prefs::kPowerPresentationScreenDimDelayFactor,
542 100, INT_MAX, true)); 542 100, INT_MAX, true));
543 handlers_.push_back( 543 handlers_.push_back(
544 new IntPercentageToDoublePolicyHandler( 544 new IntPercentageToDoublePolicyHandler(
545 key::kUserActivityScreenDimDelayScale, 545 key::kUserActivityScreenDimDelayScale,
546 prefs::kPowerUserActivityScreenDimDelayFactor, 546 prefs::kPowerUserActivityScreenDimDelayFactor,
547 100, INT_MAX, true)); 547 100, INT_MAX, true));
548 handlers_.push_back(new IntRangePolicyHandler(key::kUptimeLimit, 548 handlers_.push_back(new IntRangePolicyHandler(key::kUptimeLimit,
549 prefs::kUptimeLimit, 549 prefs::kUptimeLimit,
550 3600, INT_MAX, true)); 550 3600, INT_MAX, true));
551 handlers_.push_back(new IntRangePolicyHandler( 551 handlers_.push_back(new IntRangePolicyHandler(
(...skipping 30 matching lines...) Expand all
582 } 582 }
583 583
584 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 584 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
585 PolicyMap* policies) const { 585 PolicyMap* policies) const {
586 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 586 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
587 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 587 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
588 (*handler)->PrepareForDisplaying(policies); 588 (*handler)->PrepareForDisplaying(policies);
589 } 589 }
590 590
591 } // namespace policy 591 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698