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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 555323002: Deprecate direct use of legacy extension management preference (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes addressing #12 Created 6 years, 3 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 | « extensions/browser/extension_prefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 3cf4829d8cfe384a88a9864f458298fa31f3cc51..e0cd6734f593893fe61e0e89ff0efdb9c89aac1c 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -1813,27 +1813,6 @@ bool ExtensionPrefs::HasIncognitoPrefValue(const std::string& pref_key) {
return has_incognito_pref_value;
}
-URLPatternSet ExtensionPrefs::GetAllowedInstallSites() {
- URLPatternSet result;
- const base::ListValue* list =
- prefs_->GetList(pref_names::kAllowedInstallSites);
- CHECK(list);
-
- for (size_t i = 0; i < list->GetSize(); ++i) {
- std::string entry_string;
- URLPattern entry(URLPattern::SCHEME_ALL);
- if (!list->GetString(i, &entry_string) ||
- entry.Parse(entry_string) != URLPattern::PARSE_SUCCESS) {
- LOG(ERROR) << "Invalid value for preference: "
- << pref_names::kAllowedInstallSites << "." << i;
- continue;
- }
- result.AddPattern(entry);
- }
-
- return result;
-}
-
const base::DictionaryValue* ExtensionPrefs::GetGeometryCache(
const std::string& extension_id) const {
const base::DictionaryValue* extension_prefs = GetExtensionPref(extension_id);
« no previous file with comments | « extensions/browser/extension_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698