Index: chrome/common/extensions/extension.h |
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h |
index d91964d5f8af424a444f1f4bfa1749efb22f77ce..9d9b98d1f5746b5e97e2c390d0e8e7fc7d63bcf7 100644 |
--- a/chrome/common/extensions/extension.h |
+++ b/chrome/common/extensions/extension.h |
@@ -247,6 +247,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
// |ERROR_ON_PRIVATE_KEY| means that private keys inside an |
// extension should be errors rather than warnings. |
ERROR_ON_PRIVATE_KEY = 1 << 6, |
+ |
+ // |FROM_DEFAULT| indicates the extension was created as default. |
Mihai Parparita -not on Chrome
2012/08/27 18:38:00
Update comment to refer to new constant name.
Als
|
+ WAS_INSTALLED_BY_DEFAULT = 1 << 7, |
}; |
static scoped_refptr<Extension> Create(const FilePath& path, |
@@ -695,6 +698,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
int creation_flags() const { return creation_flags_; } |
bool from_webstore() const { return (creation_flags_ & FROM_WEBSTORE) != 0; } |
bool from_bookmark() const { return (creation_flags_ & FROM_BOOKMARK) != 0; } |
+ bool was_installed_by_default() const { |
+ return (creation_flags_ & WAS_INSTALLED_BY_DEFAULT) != 0; |
+ } |
// App-related. |
bool is_app() const { |