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

Unified Diff: chrome/common/extensions/extension.h

Issue 5968009: Change extension unload notification to indicate updates.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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/common/extensions/extension.h
===================================================================
--- chrome/common/extensions/extension.h (revision 69996)
+++ chrome/common/extensions/extension.h (working copy)
@@ -734,4 +734,22 @@
GURL update_url;
};
+struct UnloadedExtensionInfo {
+ enum Reason {
Erik does not do reviews 2010/12/23 17:05:17 random thought: should we have a separate reason f
asargent_no_longer_on_chrome 2010/12/23 18:53:04 We already handle this in a sort of unexpected pla
+ DISABLED, // The extension was disabled.
Erik does not do reviews 2010/12/23 17:05:17 naming nit: it would be nice if you used the same
asargent_no_longer_on_chrome 2010/12/23 18:53:04 Good point. Changed to: DISABLE, UPDATE, and UNINS
+ UPDATING, // The extension is being updated to a newer version.
Erik does not do reviews 2010/12/23 17:05:17 Are we going to need to add a subsequent UPDATE_FA
asargent_no_longer_on_chrome 2010/12/23 18:53:04 I think anyone who's interested could listen for E
+ UNINSTALL, // The extension is being uninstalled.
+ };
+
+ Reason reason;
+
+ // Was the extension already disabled?
+ bool already_disabled;
+
+ // Can be NULL in the case of an already_disabled extension.
Erik does not do reviews 2010/12/23 17:05:17 seems like there should be an extension id field t
asargent_no_longer_on_chrome 2010/12/23 18:53:04 I was mistaken that the extension can be NULL (the
+ const Extension* extension;
+
+ UnloadedExtensionInfo(const Extension* extension, Reason reason);
+};
+
#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_

Powered by Google App Engine
This is Rietveld 408576698