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

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

Issue 12209091: Add a policy and pref to control whether deleting browsing and download history is allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Renamed policy and pref Created 7 years, 10 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
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 Value::TYPE_LIST }, 99 Value::TYPE_LIST },
100 { key::kEnabledPlugins, 100 { key::kEnabledPlugins,
101 prefs::kPluginsEnabledPlugins, 101 prefs::kPluginsEnabledPlugins,
102 Value::TYPE_LIST }, 102 Value::TYPE_LIST },
103 { key::kShowHomeButton, 103 { key::kShowHomeButton,
104 prefs::kShowHomeButton, 104 prefs::kShowHomeButton,
105 Value::TYPE_BOOLEAN }, 105 Value::TYPE_BOOLEAN },
106 { key::kSavingBrowserHistoryDisabled, 106 { key::kSavingBrowserHistoryDisabled,
107 prefs::kSavingBrowserHistoryDisabled, 107 prefs::kSavingBrowserHistoryDisabled,
108 Value::TYPE_BOOLEAN }, 108 Value::TYPE_BOOLEAN },
109 { key::kAllowDeletingBrowserHistory,
110 prefs::kAllowDeletingBrowserHistory,
111 Value::TYPE_BOOLEAN },
109 { key::kDeveloperToolsDisabled, 112 { key::kDeveloperToolsDisabled,
110 prefs::kDevToolsDisabled, 113 prefs::kDevToolsDisabled,
111 Value::TYPE_BOOLEAN }, 114 Value::TYPE_BOOLEAN },
112 { key::kBlockThirdPartyCookies, 115 { key::kBlockThirdPartyCookies,
113 prefs::kBlockThirdPartyCookies, 116 prefs::kBlockThirdPartyCookies,
114 Value::TYPE_BOOLEAN }, 117 Value::TYPE_BOOLEAN },
115 { key::kDefaultCookiesSetting, 118 { key::kDefaultCookiesSetting,
116 prefs::kManagedDefaultCookiesSetting, 119 prefs::kManagedDefaultCookiesSetting,
117 Value::TYPE_INTEGER }, 120 Value::TYPE_INTEGER },
118 { key::kDefaultImagesSetting, 121 { key::kDefaultImagesSetting,
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
516 } 519 }
517 520
518 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 521 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
519 PolicyMap* policies) const { 522 PolicyMap* policies) const {
520 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 523 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
521 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 524 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
522 (*handler)->PrepareForDisplaying(policies); 525 (*handler)->PrepareForDisplaying(policies);
523 } 526 }
524 527
525 } // namespace policy 528 } // namespace policy
OLDNEW
« no previous file with comments | « chrome/app/policy/policy_templates.json ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698