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

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

Issue 159323: Make possible restarting extensions from the chrome://extensions/ page.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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/extensions_service.h ('k') | chrome/browser/extensions/extensions_ui.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_service.cc
===================================================================
--- chrome/browser/extensions/extensions_service.cc (revision 21643)
+++ chrome/browser/extensions/extensions_service.cc (working copy)
@@ -354,6 +354,14 @@
alert_on_error, scoped_refptr<ExtensionsService>(this)));
}
+void ExtensionsService::ReloadExtension(const std::string& extension_id) {
+ Extension* extension = GetExtensionById(extension_id);
+ FilePath extension_path = extension->path();
+
+ UnloadExtension(extension_id);
+ LoadExtension(extension_path);
+}
+
void ExtensionsService::UninstallExtension(const std::string& extension_id,
bool external_uninstall) {
Extension* extension = GetExtensionById(extension_id);
« no previous file with comments | « chrome/browser/extensions/extensions_service.h ('k') | chrome/browser/extensions/extensions_ui.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698