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

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

Issue 2801583003: developerPrivate.repair: Skip not-corrupted and policy extensions (Closed)
Patch Set: change 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..a00d1c70fab6196e970f7826f8a425f206fa5289 100644
--- a/chrome/browser/extensions/webstore_reinstaller.cc
+++ b/chrome/browser/extensions/webstore_reinstaller.cc
@@ -27,6 +27,9 @@ WebstoreReinstaller::WebstoreReinstaller(
Profile::FromBrowserContext(web_contents->GetBrowserContext()),
callback),
content::WebContentsObserver(web_contents) {
+ DCHECK(ExtensionPrefs::Get(web_contents->GetBrowserContext())
+ ->GetDisableReasons(extension_id) &
Devlin 2017/04/06 21:01:32 nit: Prefer HasDisableReason
lazyboy 2017/04/06 22:32:56 Done.
+ Extension::DISABLE_CORRUPTED);
}
WebstoreReinstaller::~WebstoreReinstaller() {

Powered by Google App Engine
This is Rietveld 408576698