Index: chrome/common/extensions/extension.h |
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h |
index d91964d5f8af424a444f1f4bfa1749efb22f77ce..26721460c459b36f3558f1293affa75b62efc7cf 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. |
+ FROM_DEFAULT = 1 << 7, |
}; |
static scoped_refptr<Extension> Create(const FilePath& path, |
@@ -695,6 +698,7 @@ 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 from_default() const { return (creation_flags_ & FROM_DEFAULT) != 0; } |
// App-related. |
bool is_app() const { |