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

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

Issue 2801583003: developerPrivate.repair: Skip not-corrupted and policy extensions (Closed)
Patch Set: adress comments Created 3 years, 8 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/webstore_reinstaller.cc
diff --git a/chrome/browser/extensions/webstore_reinstaller.cc b/chrome/browser/extensions/webstore_reinstaller.cc
index 29b4e99dff5f409ef5fb1f33fcc63cc7ea034c1f..c3ea53e5efddef00f5df0dabe506540661070089 100644
--- a/chrome/browser/extensions/webstore_reinstaller.cc
+++ b/chrome/browser/extensions/webstore_reinstaller.cc
@@ -27,6 +27,8 @@ WebstoreReinstaller::WebstoreReinstaller(
Profile::FromBrowserContext(web_contents->GetBrowserContext()),
callback),
content::WebContentsObserver(web_contents) {
+ DCHECK(ExtensionPrefs::Get(web_contents->GetBrowserContext())
+ ->HasDisableReason(extension_id, Extension::DISABLE_CORRUPTED));
}
WebstoreReinstaller::~WebstoreReinstaller() {

Powered by Google App Engine
This is Rietveld 408576698