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

Unified Diff: chrome/browser/extensions/chrome_content_verifier_delegate.h

Issue 2790823004: Retry reinstallation of corrupted policy extensions. (Closed)
Patch Set: address comments Created 3 years, 9 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 | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/chrome_content_verifier_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/chrome_content_verifier_delegate.h
diff --git a/chrome/browser/extensions/chrome_content_verifier_delegate.h b/chrome/browser/extensions/chrome_content_verifier_delegate.h
index 086bc5ef2ebb33c97666428fd5ce31418bd314ce..1f489fd88636d20f0b560dd07b3016d0de3150cb 100644
--- a/chrome/browser/extensions/chrome_content_verifier_delegate.h
+++ b/chrome/browser/extensions/chrome_content_verifier_delegate.h
@@ -24,6 +24,8 @@ class BackoffEntry;
namespace extensions {
+class PolicyExtensionReinstaller;
+
class ChromeContentVerifierDelegate : public ContentVerifierDelegate {
public:
static Mode GetDefaultMode();
@@ -41,13 +43,7 @@ class ChromeContentVerifierDelegate : public ContentVerifierDelegate {
const extensions::Extension* extension) override;
void VerifyFailed(const std::string& extension_id,
ContentVerifyJob::FailureReason reason) override;
-
- protected:
- FRIEND_TEST_ALL_PREFIXES(ContentVerifierPolicyTest, Backoff);
- // For tests, overrides the default action to take to initiate policy
- // force-reinstalls.
- static void set_policy_reinstall_action_for_test(
- base::Callback<void(base::TimeDelta delay)>* action);
+ void Shutdown() override;
private:
content::BrowserContext* context_;
@@ -63,6 +59,8 @@ class ChromeContentVerifierDelegate : public ContentVerifierDelegate {
// disabled if content verification was in ENFORCE mode.
std::set<std::string> would_be_disabled_ids_;
+ std::unique_ptr<PolicyExtensionReinstaller> policy_extension_reinstaller_;
+
DISALLOW_COPY_AND_ASSIGN(ChromeContentVerifierDelegate);
};
« no previous file with comments | « chrome/browser/extensions/BUILD.gn ('k') | chrome/browser/extensions/chrome_content_verifier_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698