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/extensions/api/preference/preference_api.cc

Issue 2127653002: Add policy to control valid UDP port range in WebRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tnagel's comments Created 4 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler_list_factory.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/extensions/api/preference/preference_api.h" 5 #include "chrome/browser/extensions/api/preference/preference_api.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <map> 9 #include <map>
10 #include <utility> 10 #include <utility>
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 #if defined(ENABLE_WEBRTC) 125 #if defined(ENABLE_WEBRTC)
126 // webRTCMultipleRoutesEnabled and webRTCNonProxiedUdpEnabled have been 126 // webRTCMultipleRoutesEnabled and webRTCNonProxiedUdpEnabled have been
127 // replaced by webRTCIPHandlingPolicy. Leaving it for backward 127 // replaced by webRTCIPHandlingPolicy. Leaving it for backward
128 // compatibility. TODO(guoweis): Remove this in M50. 128 // compatibility. TODO(guoweis): Remove this in M50.
129 {"webRTCMultipleRoutesEnabled", prefs::kWebRTCMultipleRoutesEnabled, 129 {"webRTCMultipleRoutesEnabled", prefs::kWebRTCMultipleRoutesEnabled,
130 APIPermission::kPrivacy, APIPermission::kPrivacy}, 130 APIPermission::kPrivacy, APIPermission::kPrivacy},
131 {"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled, 131 {"webRTCNonProxiedUdpEnabled", prefs::kWebRTCNonProxiedUdpEnabled,
132 APIPermission::kPrivacy, APIPermission::kPrivacy}, 132 APIPermission::kPrivacy, APIPermission::kPrivacy},
133 {"webRTCIPHandlingPolicy", prefs::kWebRTCIPHandlingPolicy, 133 {"webRTCIPHandlingPolicy", prefs::kWebRTCIPHandlingPolicy,
134 APIPermission::kPrivacy, APIPermission::kPrivacy}, 134 APIPermission::kPrivacy, APIPermission::kPrivacy},
135 {"webRTCUDPPortRange", prefs::kWebRTCUDPPortRange, APIPermission::kPrivacy,
136 APIPermission::kPrivacy},
135 #endif 137 #endif
136 // accessibilityFeatures.animationPolicy is available for 138 // accessibilityFeatures.animationPolicy is available for
137 // all platforms but the others from accessibilityFeatures 139 // all platforms but the others from accessibilityFeatures
138 // is only available for OS_CHROMEOS. 140 // is only available for OS_CHROMEOS.
139 {"animationPolicy", prefs::kAnimationPolicy, 141 {"animationPolicy", prefs::kAnimationPolicy,
140 APIPermission::kAccessibilityFeaturesRead, 142 APIPermission::kAccessibilityFeaturesRead,
141 APIPermission::kAccessibilityFeaturesModify}, 143 APIPermission::kAccessibilityFeaturesModify},
142 #if defined(OS_CHROMEOS) 144 #if defined(OS_CHROMEOS)
143 {"autoclick", prefs::kAccessibilityAutoclickEnabled, 145 {"autoclick", prefs::kAccessibilityAutoclickEnabled,
144 APIPermission::kAccessibilityFeaturesRead, 146 APIPermission::kAccessibilityFeaturesRead,
(...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 pref_key, PreferenceFunction::PERMISSION_TYPE_WRITE, &browser_pref)) { 795 pref_key, PreferenceFunction::PERMISSION_TYPE_WRITE, &browser_pref)) {
794 return false; 796 return false;
795 } 797 }
796 798
797 PreferenceAPI::Get(GetProfile()) 799 PreferenceAPI::Get(GetProfile())
798 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); 800 ->RemoveExtensionControlledPref(extension_id(), browser_pref, scope);
799 return true; 801 return true;
800 } 802 }
801 803
802 } // namespace extensions 804 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698