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

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

Issue 14238037: Made it possible to tell whether an extension is being installed or updated. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added extra check. Created 7 years, 8 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/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 10b143023e91713896440f3ee62abf76bd1a9949..4f8674c7dbe6072642cbe72cb4bec7b0620d139a 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -697,6 +697,16 @@ struct ExtensionInfo {
DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
};
+struct InstalledExtensionInfo {
+ // The extension being installed - this should always be non-NULL.
+ const Extension* extension;
+
+ // True if the extension is being updated; false if it is being installed.
+ bool is_update;
+
+ InstalledExtensionInfo(const Extension* extension, bool is_update);
+};
+
struct UnloadedExtensionInfo {
extension_misc::UnloadedExtensionReason reason;
« no previous file with comments | « chrome/common/chrome_notification_types.h ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698