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

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

Issue 143463009: Add policy that forces SAML users to log in online periodically (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_factory.h" 5 #include "chrome/browser/policy/configuration_policy_handler_list_factory.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle r.h" 10 #include "chrome/browser/extensions/api/messaging/native_messaging_policy_handle r.h"
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 prefs::kPowerBatteryIdleWarningDelayMs, 602 prefs::kPowerBatteryIdleWarningDelayMs,
603 0, 603 0,
604 INT_MAX, 604 INT_MAX,
605 true))); 605 true)));
606 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 606 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
607 new IntRangePolicyHandler(key::kIdleDelayBattery, 607 new IntRangePolicyHandler(key::kIdleDelayBattery,
608 prefs::kPowerBatteryIdleDelayMs, 608 prefs::kPowerBatteryIdleDelayMs,
609 0, 609 0,
610 INT_MAX, 610 INT_MAX,
611 true))); 611 true)));
612 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
613 new IntRangePolicyHandler(key::kSAMLOfflineSigninTimeLimit,
614 prefs::kSAMLOfflineSigninTimeLimit,
615 -1,
616 INT_MAX,
617 true)));
612 handlers->AddHandler( 618 handlers->AddHandler(
613 make_scoped_ptr<ConfigurationPolicyHandler>(new IntRangePolicyHandler( 619 make_scoped_ptr<ConfigurationPolicyHandler>(new IntRangePolicyHandler(
614 key::kIdleActionAC, 620 key::kIdleActionAC,
615 prefs::kPowerAcIdleAction, 621 prefs::kPowerAcIdleAction,
616 chromeos::PowerPolicyController::ACTION_SUSPEND, 622 chromeos::PowerPolicyController::ACTION_SUSPEND,
617 chromeos::PowerPolicyController::ACTION_DO_NOTHING, 623 chromeos::PowerPolicyController::ACTION_DO_NOTHING,
618 false))); 624 false)));
619 handlers->AddHandler( 625 handlers->AddHandler(
620 make_scoped_ptr<ConfigurationPolicyHandler>(new IntRangePolicyHandler( 626 make_scoped_ptr<ConfigurationPolicyHandler>(new IntRangePolicyHandler(
621 key::kIdleActionBattery, 627 key::kIdleActionBattery,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
662 668
663 #if defined(OS_ANDROID) 669 #if defined(OS_ANDROID)
664 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>( 670 handlers->AddHandler(make_scoped_ptr<ConfigurationPolicyHandler>(
665 new ManagedBookmarksPolicyHandler())); 671 new ManagedBookmarksPolicyHandler()));
666 #endif 672 #endif
667 return handlers.Pass(); 673 return handlers.Pass();
668 } 674 }
669 #endif // !defined(OS_IOS) 675 #endif // !defined(OS_IOS)
670 676
671 } // namespace policy 677 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698