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

Unified Diff: extensions/browser/admin_policy.h

Issue 500043003: Add PolicyProvider to ExtensionManagement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-1
Patch Set: fixes to #5 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/admin_policy.h
diff --git a/extensions/browser/admin_policy.h b/extensions/browser/admin_policy.h
deleted file mode 100644
index d0d5284b7d53d3465c6b5c75e1855096961e4dad..0000000000000000000000000000000000000000
--- a/extensions/browser/admin_policy.h
+++ /dev/null
@@ -1,42 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef EXTENSIONS_BROWSER_ADMIN_POLICY_H_
-#define EXTENSIONS_BROWSER_ADMIN_POLICY_H_
-
-#include "base/values.h"
-
-namespace extensions {
-
-class Extension;
-
-// Functions for providing information about the extension whitelist,
-// blacklist, and forcelist imposed by admin policy.
-namespace admin_policy {
-
-// Checks if extensions are blacklisted by default, by policy. When true, this
-// means that even extensions without an ID should be blacklisted (e.g.
-// from the command line, or when loaded as an unpacked extension).
-bool BlacklistedByDefault(const base::ListValue* blacklist);
-
-// Returns true if the extension is allowed by the admin policy.
-bool UserMayLoad(const base::ListValue* blacklist,
- const base::ListValue* whitelist,
- const base::DictionaryValue* forcelist,
- const base::ListValue* allowed_types,
- const Extension* extension,
- base::string16* error);
-
-// Returns false if the extension is required to remain running. In practice
-// this enforces the admin policy forcelist.
-bool UserMayModifySettings(const Extension* extension, base::string16* error);
-
-// Returns false if the extension is required to remain running. In practice
-// this enforces the admin policy forcelist.
-bool MustRemainEnabled(const Extension* extension, base::string16* error);
-
-} // namespace admin_policy
-} // namespace extensions
-
-#endif // EXTENSIONS_BROWSER_ADMIN_POLICY_H_

Powered by Google App Engine
This is Rietveld 408576698