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

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

Issue 13971005: Basic multi-module support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Factor out shared module into its own handler Created 7 years, 8 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/manifest.h
diff --git a/chrome/common/extensions/manifest.h b/chrome/common/extensions/manifest.h
index c1887933ed1a582ca0b2b682f4920356f3598c20..7c3762894076196434c92200cc68739b2ee94570 100644
--- a/chrome/common/extensions/manifest.h
+++ b/chrome/common/extensions/manifest.h
@@ -55,7 +55,8 @@ class Manifest {
// This is marked legacy because platform apps are preferred. For
// backwards compatibility, we can't remove support for packaged apps
TYPE_LEGACY_PACKAGED_APP,
- TYPE_PLATFORM_APP
+ TYPE_PLATFORM_APP,
+ TYPE_SHARED_MODULE
Matt Perry 2013/04/25 20:16:31 I'm wary of adding another extension type. What's
elijahtaylor1 2013/04/25 21:01:28 It was suggested by erikkay and asargent originall
Matt Perry 2013/04/25 21:07:23 Does a new Type really buy you those things, thoug
elijahtaylor1 2013/04/25 21:26:25 I think so, right? The keys listed in _manifest_f
};
// Given two install sources, return the one which should take priority
@@ -122,6 +123,7 @@ class Manifest {
return type_ == TYPE_LEGACY_PACKAGED_APP;
}
bool is_extension() const { return type_ == TYPE_EXTENSION; }
+ bool is_shared_module() const { return type_ == TYPE_SHARED_MODULE; }
// These access the wrapped manifest value, returning false when the property
// does not exist or if the manifest type can't access it.

Powered by Google App Engine
This is Rietveld 408576698