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

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

Issue 3522015: Implement new strategy for default apps (Closed)
Patch Set: all done Created 10 years, 2 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
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension.h
diff --git a/chrome/common/extensions/extension.h b/chrome/common/extensions/extension.h
index ab9acbde51988653426a1f8e5f670f2db37131e0..a1b1351034ec5d6d4c6f4f7dcbaba45f5ed509f7 100644
--- a/chrome/common/extensions/extension.h
+++ b/chrome/common/extensions/extension.h
@@ -158,9 +158,6 @@ class Extension {
const URLPatternList& host_patterns);
std::vector<std::string> GetDistinctHosts();
- bool apps_enabled() const { return apps_enabled_; }
- void set_apps_enabled(bool val) { apps_enabled_ = val; }
-
// Icon sizes used by the extension system.
static const int kIconSizes[];
@@ -301,11 +298,7 @@ class Extension {
// Returns the base extension url for a given |extension_id|.
static GURL GetBaseURLFromExtensionId(const std::string& extension_id);
- // Returns whether the browser has apps enabled (either as the default or if
- // it was explicitly turned on via a command line switch).
- static bool AppsAreEnabled();
-
- // Returns the launch URL for the extension/apps gallery. Can be set via the
+ // Returns the url prefix for the extension/apps gallery. Can be set via the
// --apps-gallery-url switch. The URL returned will not contain a trailing
// slash. Do not use this as a prefix/extent for the store. Instead see
// ExtensionsService::GetWebStoreApp or
@@ -632,10 +625,6 @@ class Extension {
// which override the handling of those URLs.
URLOverrideMap chrome_url_overrides_;
- // Whether apps-related features can be parsed during InitFromValue().
- // Defaults to the value from --enable-extension-apps.
- bool apps_enabled_;
-
// Whether this extension uses app features.
bool is_app_;
@@ -675,6 +664,7 @@ class Extension {
};
typedef std::vector<Extension*> ExtensionList;
+typedef std::set<std::string> ExtensionIdSet;
// Handy struct to pass core extension info around.
struct ExtensionInfo {
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | chrome/common/extensions/extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698