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

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

Issue 10537099: add "always allow" option to the mediastream infobar and allow user to allow/not allow acces to devi (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: use only content settings, added a device controller, addressed all the comments Created 8 years, 6 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 (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/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 267 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 Value::TYPE_STRING }, 278 Value::TYPE_STRING },
279 { key::kEnterpriseWebStoreName, 279 { key::kEnterpriseWebStoreName,
280 prefs::kEnterpriseWebStoreName, 280 prefs::kEnterpriseWebStoreName,
281 Value::TYPE_STRING }, 281 Value::TYPE_STRING },
282 { key::kEnableMemoryInfo, 282 { key::kEnableMemoryInfo,
283 prefs::kEnableMemoryInfo, 283 prefs::kEnableMemoryInfo,
284 Value::TYPE_BOOLEAN }, 284 Value::TYPE_BOOLEAN },
285 { key::kRestrictSigninToPattern, 285 { key::kRestrictSigninToPattern,
286 prefs::kGoogleServicesUsernamePattern, 286 prefs::kGoogleServicesUsernamePattern,
287 Value::TYPE_STRING }, 287 Value::TYPE_STRING },
288 { key::kDefaultMediaStreamSetting,
289 prefs::kManagedDefaultMediaStreamSetting,
290 Value::TYPE_INTEGER },
288 291
289 #if defined(OS_CHROMEOS) 292 #if defined(OS_CHROMEOS)
290 { key::kChromeOsLockOnIdleSuspend, 293 { key::kChromeOsLockOnIdleSuspend,
291 prefs::kEnableScreenLock, 294 prefs::kEnableScreenLock,
292 Value::TYPE_BOOLEAN }, 295 Value::TYPE_BOOLEAN },
293 { key::kChromeOsReleaseChannel, 296 { key::kChromeOsReleaseChannel,
294 prefs::kChromeOsReleaseChannel, 297 prefs::kChromeOsReleaseChannel,
295 Value::TYPE_STRING }, 298 Value::TYPE_STRING },
296 { key::kGDataDisabled, 299 { key::kGDataDisabled,
297 prefs::kDisableGData, 300 prefs::kDisableGData,
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 } 388 }
386 389
387 void ConfigurationPolicyHandlerList::PrepareForDisplaying( 390 void ConfigurationPolicyHandlerList::PrepareForDisplaying(
388 PolicyMap* policies) const { 391 PolicyMap* policies) const {
389 std::vector<ConfigurationPolicyHandler*>::const_iterator handler; 392 std::vector<ConfigurationPolicyHandler*>::const_iterator handler;
390 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler) 393 for (handler = handlers_.begin(); handler != handlers_.end(); ++handler)
391 (*handler)->PrepareForDisplaying(policies); 394 (*handler)->PrepareForDisplaying(policies);
392 } 395 }
393 396
394 } // namespace policy 397 } // namespace policy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698