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

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

Issue 11499012: Add policy for limiting the session length (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix include order. Created 8 years 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 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 Value::TYPE_BOOLEAN }, 336 Value::TYPE_BOOLEAN },
337 { key::kAudioOutputAllowed, 337 { key::kAudioOutputAllowed,
338 prefs::kAudioOutputAllowed, 338 prefs::kAudioOutputAllowed,
339 Value::TYPE_BOOLEAN }, 339 Value::TYPE_BOOLEAN },
340 { key::kShowLogoutButtonInTray, 340 { key::kShowLogoutButtonInTray,
341 prefs::kShowLogoutButtonInTray, 341 prefs::kShowLogoutButtonInTray,
342 Value::TYPE_BOOLEAN }, 342 Value::TYPE_BOOLEAN },
343 { key::kShelfAutoHideBehavior, 343 { key::kShelfAutoHideBehavior,
344 prefs::kShelfAutoHideBehaviorLocal, 344 prefs::kShelfAutoHideBehaviorLocal,
345 Value::TYPE_STRING }, 345 Value::TYPE_STRING },
346 { key::kSessionLengthLimit,
347 prefs::kSessionLengthLimit,
348 Value::TYPE_INTEGER },
346 #endif // defined(OS_CHROMEOS) 349 #endif // defined(OS_CHROMEOS)
347 350
348 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 351 #if !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
349 { key::kBackgroundModeEnabled, 352 { key::kBackgroundModeEnabled,
350 prefs::kBackgroundModeEnabled, 353 prefs::kBackgroundModeEnabled,
351 Value::TYPE_BOOLEAN }, 354 Value::TYPE_BOOLEAN },
352 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS) 355 #endif // !defined(OS_MACOSX) && !defined(OS_CHROMEOS)
353 }; 356 };
354 357
355 // Mapping from extension type names to Extension::Type. 358 // Mapping from extension type names to Extension::Type.
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
445 } 448 }
446 449
447 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 450 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
448 PolicyMap* policies) const { 451 PolicyMap* policies) const {
449 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 452 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
450 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 453 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
451 (*handler)->PrepareForDisplaying(policies); 454 (*handler)->PrepareForDisplaying(policies);
452 } 455 }
453 456
454 } // namespace policy 457 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698