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

Unified Diff: chrome/browser/extensions/api/preference/preference_api.cc

Issue 290123003: Exposes passwordSavingEnabled API from chrome privacy preference extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/extensions/api/preference/preference_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/preference/preference_api.cc
diff --git a/chrome/browser/extensions/api/preference/preference_api.cc b/chrome/browser/extensions/api/preference/preference_api.cc
index 163ce178ba2ee4a4cac9a0126da14328ff3fad23..64eeb05cb3d928439d2bd0907f5a03ca9bc66ae0 100644
--- a/chrome/browser/extensions/api/preference/preference_api.cc
+++ b/chrome/browser/extensions/api/preference/preference_api.cc
@@ -68,8 +68,6 @@ const char kConversionErrorMessage[] =
"properly.";
PrefMappingEntry kPrefMapping[] = {
- {"protectedContentEnabled", prefs::kEnableDRM, APIPermission::kPrivacy,
- APIPermission::kPrivacy},
{"alternateErrorPagesEnabled", prefs::kAlternateErrorPagesEnabled,
APIPermission::kPrivacy, APIPermission::kPrivacy},
{"autofillEnabled", autofill::prefs::kAutofillEnabled,
@@ -78,6 +76,10 @@ PrefMappingEntry kPrefMapping[] = {
APIPermission::kPrivacy, APIPermission::kPrivacy},
{"networkPredictionEnabled", prefs::kNetworkPredictionEnabled,
APIPermission::kPrivacy, APIPermission::kPrivacy},
+ {"passwordSavingEnabled", password_manager::prefs::kPasswordManagerEnabled,
+ APIPermission::kPrivacy, APIPermission::kPrivacy},
+ {"protectedContentEnabled", prefs::kEnableDRM, APIPermission::kPrivacy,
+ APIPermission::kPrivacy},
{"proxy", prefs::kProxy, APIPermission::kProxy, APIPermission::kProxy},
{"referrersEnabled", prefs::kEnableReferrers, APIPermission::kPrivacy,
APIPermission::kPrivacy},
« no previous file with comments | « no previous file | chrome/browser/extensions/api/preference/preference_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698