Index: chrome/common/extensions/extension.h |
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h |
index ec4b54d6aeed4e47a945f1f8e610db49f5c1583d..e73761b491d63a12defb0c231792232f5330061a 100644 |
--- a/chrome/common/extensions/extension.h |
+++ b/chrome/common/extensions/extension.h |
@@ -131,7 +131,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
TYPE_THEME, |
TYPE_USER_SCRIPT, |
TYPE_HOSTED_APP, |
- TYPE_PACKAGED_APP, |
+ // This is marked legacy because platform apps are preferred. For |
+ // backwards compatibility, we can't remove support for packaged apps |
Nico
2012/09/28 01:38:15
nit: trailing .
|
+ TYPE_LEGACY_PACKAGED_APP, |
TYPE_PLATFORM_APP |
}; |
@@ -723,11 +725,11 @@ class Extension : public base::RefCountedThreadSafe<Extension> { |
// App-related. |
bool is_app() const { |
- return is_packaged_app() || is_hosted_app() || is_platform_app(); |
+ return is_legacy_packaged_app() || is_hosted_app() || is_platform_app(); |
} |
bool is_platform_app() const; |
bool is_hosted_app() const; |
- bool is_packaged_app() const; |
+ bool is_legacy_packaged_app() const; |
bool is_storage_isolated() const { return is_storage_isolated_; } |
const URLPatternSet& web_extent() const { return extent_; } |
const std::string& launch_local_path() const { return launch_local_path_; } |