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

Unified Diff: extensions/browser/extension_prefs.cc

Issue 500043003: Add PolicyProvider to ExtensionManagement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-1
Patch Set: rebase, format correction 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
Index: extensions/browser/extension_prefs.cc
diff --git a/extensions/browser/extension_prefs.cc b/extensions/browser/extension_prefs.cc
index 864a4f9a1b72c007db5544a99bc5659d9b618e33..3cf4829d8cfe384a88a9864f458298fa31f3cc51 100644
--- a/extensions/browser/extension_prefs.cc
+++ b/extensions/browser/extension_prefs.cc
@@ -14,7 +14,6 @@
#include "base/value_conversions.h"
#include "components/crx_file/id_util.h"
#include "components/pref_registry/pref_registry_syncable.h"
-#include "extensions/browser/admin_policy.h"
#include "extensions/browser/app_sorting.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/extension_pref_store.h"
@@ -776,11 +775,6 @@ bool ExtensionPrefs::SetAlertSystemFirstRun() {
return false;
}
-bool ExtensionPrefs::ExtensionsBlacklistedByDefault() const {
- return admin_policy::BlacklistedByDefault(
- prefs_->GetList(pref_names::kInstallDenyList));
-}
-
bool ExtensionPrefs::DidExtensionEscalatePermissions(
const std::string& extension_id) {
return ReadPrefAsBooleanAndReturn(extension_id,

Powered by Google App Engine
This is Rietveld 408576698