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

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

Issue 11638053: Make crash bubble send onRestarted() to apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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.h
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h
index d5658e3f73f3d444f6729b9eb94f33c81929f65d..55fe58f884bcc069459960c0abe80776056956d7 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -339,12 +339,18 @@ class ExtensionService
const GURL& download_url,
extensions::CrxInstaller** out_crx_installer) OVERRIDE;
- // Reloads the specified extension.
+ // Reloads the specified extension, sending the onLaunched() event to it if it
+ // currently has any window showing.
void ReloadExtension(const std::string& extension_id);
- // Restarts the specified extension.
+ // Reloads an extension, sending the onRestarted() event to it if it currently
+ // has any window showing.
void RestartExtension(const std::string& extension_id);
+ // Restarts an extension, unconditionally sending the onRestarted() event to
+ // it.
+ void ReloadExtensionWithRestartEvent(const std::string& extension_id);
+
// Uninstalls the specified extension. Callers should only call this method
// with extensions that exist. |external_uninstall| is a magical parameter
// that is only used to send information to ExtensionPrefs, which external

Powered by Google App Engine
This is Rietveld 408576698