OLD | NEW |
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/extension_preference_api.h" | 5 #include "chrome/browser/extensions/extension_preference_api.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 { "hyperlinkAuditingEnabled", | 59 { "hyperlinkAuditingEnabled", |
60 prefs::kEnableHyperlinkAuditing, | 60 prefs::kEnableHyperlinkAuditing, |
61 ExtensionAPIPermission::kPrivacy | 61 ExtensionAPIPermission::kPrivacy |
62 }, | 62 }, |
63 { "instantEnabled", | 63 { "instantEnabled", |
64 prefs::kInstantEnabled, | 64 prefs::kInstantEnabled, |
65 ExtensionAPIPermission::kPrivacy | 65 ExtensionAPIPermission::kPrivacy |
66 }, | 66 }, |
67 { "managedModeEnabled", | 67 { "managedModeEnabled", |
68 prefs::kInManagedMode, | 68 prefs::kInManagedMode, |
69 ExtensionAPIPermission::kManagedMode | 69 ExtensionAPIPermission::kManagedModePrivate |
70 }, | 70 }, |
71 { "networkPredictionEnabled", | 71 { "networkPredictionEnabled", |
72 prefs::kNetworkPredictionEnabled, | 72 prefs::kNetworkPredictionEnabled, |
73 ExtensionAPIPermission::kPrivacy | 73 ExtensionAPIPermission::kPrivacy |
74 }, | 74 }, |
75 { "proxy", | 75 { "proxy", |
76 prefs::kProxy, | 76 prefs::kProxy, |
77 ExtensionAPIPermission::kProxy | 77 ExtensionAPIPermission::kProxy |
78 }, | 78 }, |
79 { "referrersEnabled", | 79 { "referrersEnabled", |
(...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
470 } | 470 } |
471 | 471 |
472 std::string browser_pref; | 472 std::string browser_pref; |
473 if (!ValidateBrowserPref(pref_key, &browser_pref)) | 473 if (!ValidateBrowserPref(pref_key, &browser_pref)) |
474 return false; | 474 return false; |
475 | 475 |
476 ExtensionPrefs* prefs = profile_->GetExtensionService()->extension_prefs(); | 476 ExtensionPrefs* prefs = profile_->GetExtensionService()->extension_prefs(); |
477 prefs->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); | 477 prefs->RemoveExtensionControlledPref(extension_id(), browser_pref, scope); |
478 return true; | 478 return true; |
479 } | 479 } |
OLD | NEW |