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

Unified Diff: extensions/browser/test_management_policy.h

Issue 536753003: Add recommended extension installation support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ext-3
Patch Set: add ui changes 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/test_management_policy.h
diff --git a/extensions/browser/test_management_policy.h b/extensions/browser/test_management_policy.h
index a96cde9df9ae45806936eeab6401f04b63af1ee6..982f8e6d1768268f5477981edf0a0ea98e185594 100644
--- a/extensions/browser/test_management_policy.h
+++ b/extensions/browser/test_management_policy.h
@@ -21,7 +21,8 @@ class TestManagementPolicyProvider : public ManagementPolicy::Provider {
PROHIBIT_LOAD = 1 << 0,
PROHIBIT_MODIFY_STATUS = 1 << 1,
MUST_REMAIN_ENABLED = 1 << 2,
- MUST_REMAIN_DISABLED = 1 << 3
+ MUST_REMAIN_DISABLED = 1 << 3,
+ MUST_REMAIN_INSTALLED = 1 << 4
};
static std::string expected_error() {
@@ -49,11 +50,15 @@ class TestManagementPolicyProvider : public ManagementPolicy::Provider {
Extension::DisableReason* reason,
base::string16* error) const OVERRIDE;
+ virtual bool MustRemainInstalled(const Extension* extension,
+ base::string16* error) const OVERRIDE;
+
private:
bool may_load_;
bool may_modify_status_;
bool must_remain_enabled_;
bool must_remain_disabled_;
+ bool must_remain_installed_;
Extension::DisableReason disable_reason_;
base::string16 error_message_;

Powered by Google App Engine
This is Rietveld 408576698