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

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

Issue 8429023: Add platform_app flag to manifest. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Changes from review. Refactored CommandLine tweaks. Created 9 years, 1 month 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 912fa31be04bb9612d3a323b09d479e7a8e5c11b..c89c8f27d99e48c57da421d0b69b4416e67a8226 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -103,7 +103,8 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
TYPE_THEME,
TYPE_USER_SCRIPT,
TYPE_HOSTED_APP,
- TYPE_PACKAGED_APP
+ TYPE_PACKAGED_APP,
+ TYPE_PLATFORM_APP
};
enum SyncType {
@@ -547,6 +548,7 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// App-related.
bool is_app() const { return is_app_; }
+ bool is_platform_app() const { return is_platform_app_; }
bool is_hosted_app() const { return is_app() && !web_extent().is_empty(); }
bool is_packaged_app() const { return is_app() && web_extent().is_empty(); }
bool is_storage_isolated() const { return is_app() && is_storage_isolated_; }
@@ -820,6 +822,9 @@ class Extension : public base::RefCountedThreadSafe<Extension> {
// Whether this extension uses app features.
bool is_app_;
+ // Whether this app uses platform features.
+ bool is_platform_app_;
+
// Whether this extension requests isolated storage.
bool is_storage_isolated_;

Powered by Google App Engine
This is Rietveld 408576698