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

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

Issue 342003005: Show alert failure for reloading unpacked extensions with bad manifest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed patch set 4 comments Created 6 years, 6 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 ae54e2963508ce2e8dee0a05f969fda85c841647..15ce951dfe39875040d6efb9cb92738122c70f41 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -698,7 +698,10 @@ void ExtensionService::ReloadExtension(
// We should always be able to remember the extension's path. If it's not in
// the map, someone failed to update |unloaded_extension_paths_|.
CHECK(!path.empty());
- extensions::UnpackedInstaller::Create(this)->Load(path);
+ scoped_refptr<extensions::UnpackedInstaller> unpacked_installer =
+ extensions::UnpackedInstaller::Create(this);
+ unpacked_installer->set_be_noisy_on_failure(false);
gpdavis 2014/06/30 19:42:52 Still need to figure out how to address this probl
Devlin 2014/06/30 21:06:41 Not even (as there can be explicit extension loads
gpdavis 2014/06/30 21:41:19 Where exactly is the relevant code that triggers t
Devlin 2014/06/30 22:32:36 cs.chromium.org is pretty awesome. So, you know t
gpdavis 2014/06/30 23:35:11 I am fairly well acquainted with code search (I ce
Devlin 2014/07/01 17:02:55 Yeah, adding a boolean be_noisy to ExtensionServic
gpdavis 2014/07/01 20:58:55 Sweet. I went ahead and added that argument and u
+ unpacked_installer->Load(path);
}
// When reloading is done, mark this extension as done reloading.
SetBeingReloaded(extension_id, false);

Powered by Google App Engine
This is Rietveld 408576698