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

Unified Diff: chrome/browser/extensions/extension_preference_api.cc

Issue 7298005: Expose privacy-relevant preferences via Chrome's extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebasing. Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/extension_preference_api.cc
diff --git a/chrome/browser/extensions/extension_preference_api.cc b/chrome/browser/extensions/extension_preference_api.cc
index b0ada5ffe67004b33ee091c8098520534c3be313..90adc092a366976a1c081df32f55182e4e8a0a6e 100644
--- a/chrome/browser/extensions/extension_preference_api.cc
+++ b/chrome/browser/extensions/extension_preference_api.cc
@@ -45,22 +45,55 @@ const char kValue[] = "value";
const char kOnPrefChangeFormat[] = "types.ChromeSetting.%s.onChange";
PrefMappingEntry kPrefMapping[] = {
- { "thirdPartyCookiesAllowed",
- prefs::kBlockThirdPartyCookies,
- ExtensionAPIPermission::kContentSettings
+ { "alternateErrorPagesEnabled",
+ prefs::kAlternateErrorPagesEnabled,
+ ExtensionAPIPermission::kExperimental
},
- { "referrersEnabled",
- prefs::kEnableReferrers,
- ExtensionAPIPermission::kContentSettings
+ { "autofillEnabled",
+ prefs::kAutofillEnabled,
+ ExtensionAPIPermission::kExperimental
},
{ "hyperlinkAuditingEnabled",
prefs::kEnableHyperlinkAuditing,
- ExtensionAPIPermission::kContentSettings
+ ExtensionAPIPermission::kExperimental
+ },
+ { "instantEnabled",
+ prefs::kInstantEnabled,
+ ExtensionAPIPermission::kExperimental
+ },
+ // TODO(mkwst): come back to this once the UMA discussion has been resolved.
+ // { "metricsReportingEnabled",
+ // prefs::kMetricsReportingEnabled,
+ // ExtensionAPIPermission::kMetrics
+ // },
+ { "networkPredictionEnabled",
+ prefs::kNetworkPredictionEnabled,
+ ExtensionAPIPermission::kExperimental
},
{ "proxy",
prefs::kProxy,
ExtensionAPIPermission::kProxy
},
+ { "referrersEnabled",
+ prefs::kEnableReferrers,
+ ExtensionAPIPermission::kExperimental
+ },
+ { "searchSuggestEnabled",
+ prefs::kSearchSuggestEnabled,
+ ExtensionAPIPermission::kExperimental
+ },
+ { "safeBrowsingEnabled",
+ prefs::kSafeBrowsingEnabled,
+ ExtensionAPIPermission::kExperimental
+ },
+ { "thirdPartyCookiesAllowed",
+ prefs::kBlockThirdPartyCookies,
+ ExtensionAPIPermission::kExperimental
+ },
+ { "translationServiceEnabled",
+ prefs::kEnableTranslate,
+ ExtensionAPIPermission::kExperimental
+ }
};
class IdentityPrefTransformer : public PrefTransformerInterface {

Powered by Google App Engine
This is Rietveld 408576698