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

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

Issue 8477005: Add policies to specify an enterprise web store. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add tests for ComponentLoader. Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/stl_util.h" 7 #include "base/stl_util.h"
8 #include "base/values.h" 8 #include "base/values.h"
9 #include "chrome/browser/policy/configuration_policy_handler.h" 9 #include "chrome/browser/policy/configuration_policy_handler.h"
10 #include "chrome/browser/policy/policy_error_map.h" 10 #include "chrome/browser/policy/policy_error_map.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords, 173 { Value::TYPE_BOOLEAN, kPolicyImportSavedPasswords,
174 prefs::kImportSavedPasswords }, 174 prefs::kImportSavedPasswords },
175 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy, 175 { Value::TYPE_INTEGER, kPolicyMaxConnectionsPerProxy,
176 prefs::kMaxConnectionsPerProxy }, 176 prefs::kMaxConnectionsPerProxy },
177 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo, 177 { Value::TYPE_BOOLEAN, kPolicyHideWebStorePromo,
178 prefs::kNTPHideWebStorePromo }, 178 prefs::kNTPHideWebStorePromo },
179 { Value::TYPE_LIST, kPolicyURLBlacklist, 179 { Value::TYPE_LIST, kPolicyURLBlacklist,
180 prefs::kUrlBlacklist }, 180 prefs::kUrlBlacklist },
181 { Value::TYPE_LIST, kPolicyURLWhitelist, 181 { Value::TYPE_LIST, kPolicyURLWhitelist,
182 prefs::kUrlWhitelist }, 182 prefs::kUrlWhitelist },
183 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreURL,
184 prefs::kEnterpriseWebStoreURL },
185 { Value::TYPE_STRING, kPolicyEnterpriseWebStoreName,
186 prefs::kEnterpriseWebStoreName },
183 187
184 #if defined(OS_CHROMEOS) 188 #if defined(OS_CHROMEOS)
185 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend, 189 { Value::TYPE_BOOLEAN, kPolicyChromeOsLockOnIdleSuspend,
186 prefs::kEnableScreenLock }, 190 prefs::kEnableScreenLock },
187 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel, 191 { Value::TYPE_STRING, kPolicyChromeOsReleaseChannel,
188 prefs::kChromeOsReleaseChannel }, 192 prefs::kChromeOsReleaseChannel },
189 #endif 193 #endif
190 }; 194 };
191 195
192 } // namespace 196 } // namespace
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 } 244 }
241 245
242 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 246 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
243 PolicyMap* policies) const { 247 PolicyMap* policies) const {
244 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 248 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
245 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 249 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
246 (*handler)->PrepareForDisplaying(policies); 250 (*handler)->PrepareForDisplaying(policies);
247 } 251 }
248 252
249 } // namespace policy 253 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698