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

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: Upload flaked. 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
446 } 449 }
447 450
448 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 451 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
449 PolicyMap* policies) const { 452 PolicyMap* policies) const {
450 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 453 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
451 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 454 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
452 (*handler)->PrepareForDisplaying(policies); 455 (*handler)->PrepareForDisplaying(policies);
453 } 456 }
454 457
455 } // namespace policy 458 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/power/session_length_limiter_unittest.cc ('k') | chrome/chrome_browser_chromeos.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698