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

Unified Diff: chrome/browser/extensions/extension_service.cc

Issue 2350403002: Fix extension content verification out-of-band hash fetching (Closed)
Patch Set: Created 4 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: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index a149b58cdacfd99e392ac8373e58da301597597e..2760152cccbe8873bccd26128ba1e8ab7b5aa75d 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -8,7 +8,9 @@
#include <algorithm>
#include <iterator>
+#include <memory>
#include <set>
+#include <utility>
#include "base/command_line.h"
#include "base/location.h"
@@ -1741,6 +1743,10 @@ void ExtensionService::OnExtensionInstalled(
}
}
+ // If the old version of the extension was disabled due to corruption, this
+ // new install may correct the problem.
+ disable_reasons &= ~Extension::DISABLE_CORRUPTED;
+
// Unsupported requirements overrides the management policy.
if (install_flags & extensions::kInstallFlagHasRequirementErrors) {
disable_reasons |= Extension::DISABLE_UNSUPPORTED_REQUIREMENT;
« no previous file with comments | « chrome/browser/extensions/chrome_content_verifier_delegate.cc ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698