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

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: Test that already_installed is true on update, false on install. 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
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index 10b143023e91713896440f3ee62abf76bd1a9949..f67904ddd85d922f103de82700c46294a41f8664 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -697,6 +697,17 @@ struct ExtensionInfo {
DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
};
+struct InstalledExtensionInfo {
+ // The extension being installed - this should always be non-NULL.
+ const Extension* extension;
+
+ // Was the extension already installed? (If true, this means the extension is
+ // being updated.)
+ bool already_installed;
benwells 2013/05/02 01:40:08 I think this is more clear if it is just called is
Matt Giuca 2013/05/02 05:40:33 Done.
+
+ InstalledExtensionInfo(const Extension* extension, bool already_installed);
+};
+
struct UnloadedExtensionInfo {
extension_misc::UnloadedExtensionReason reason;

Powered by Google App Engine
This is Rietveld 408576698