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

Unified Diff: chrome/common/extensions/docs/build/directory.py

Issue 10544059: Change the platform app manifest structure. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update for getDisplayPath, implement restrictions via _manifest_features.json Created 8 years, 6 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/docs/build/directory.py
diff --git a/chrome/common/extensions/docs/build/directory.py b/chrome/common/extensions/docs/build/directory.py
index 9e2627e985d74e038497b1ceff63efeb2a86b414..b7522f02dc8ab33b7c84b20609903f099bba4968 100644
--- a/chrome/common/extensions/docs/build/directory.py
+++ b/chrome/common/extensions/docs/build/directory.py
@@ -749,10 +749,12 @@ class Sample(dict):
return has_b_popup or has_p_popup
def is_hosted_app(self):
- """ Returns true if the manifest has an app but not a local_path."""
+ """ Returns true if the manifest has an app but not a local_path (that's a
+ packaged app) nor a background (that's a platform app)."""
return (self._manifest.has_key('app') and
(not self._manifest['app'].has_key('launch') or
- not self._manifest['app']['launch'].has_key('local_path')))
+ not self._manifest['app']['launch'].has_key('local_path')) and
+ not self._manifest['app'].has_key('background'))
def is_packaged_app(self):
""" Returns true if the manifest has an app/launch/local_path section."""
« no previous file with comments | « chrome/common/extensions/api/_manifest_features.json ('k') | chrome/common/extensions/docs/examples/extensions/calculator.zip » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698