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

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

Issue 9360005: Handle termination/crashes of an extension hosted in the ExtensionDialog. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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/component_loader.h ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/component_loader.cc
diff --git a/chrome/browser/extensions/component_loader.cc b/chrome/browser/extensions/component_loader.cc
index fc6ee612ff6ea7d8b683af64242859fe2149f635..227bf3875c96a4e59c2214fbed8880de6548c854 100644
--- a/chrome/browser/extensions/component_loader.cc
+++ b/chrome/browser/extensions/component_loader.cc
@@ -125,6 +125,17 @@ const Extension* ComponentLoader::AddOrReplace(const FilePath& path) {
return Add(manifest.release(), absolute_path);
}
+void ComponentLoader::Reload(const std::string& extension_id) {
+ for (RegisteredComponentExtensions::iterator it =
+ component_extensions_.begin(); it != component_extensions_.end();
+ ++it) {
+ if (GenerateId(it->manifest) == extension_id) {
+ Load(*it);
+ break;
+ }
+ }
+}
+
const Extension* ComponentLoader::Load(const ComponentExtensionInfo& info) {
int flags = Extension::REQUIRE_KEY;
// TODO(abarth): We should REQUIRE_MODERN_MANIFEST_VERSION once we've updated
« no previous file with comments | « chrome/browser/extensions/component_loader.h ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698