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

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: rebase, more fix Created 6 years, 2 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/management_policy_unittest.cc ('k') | extensions/browser/test_management_policy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/test_management_policy.h
diff --git a/extensions/browser/test_management_policy.h b/extensions/browser/test_management_policy.h
index a9951c7fa9663c0697f56e7a85d95f0751d7738f..6dcf35ac3ea68d011a193392f68f58913a605725 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_;
« no previous file with comments | « extensions/browser/management_policy_unittest.cc ('k') | extensions/browser/test_management_policy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698