Index: chrome/browser/extensions/extension_service.h |
diff --git a/chrome/browser/extensions/extension_service.h b/chrome/browser/extensions/extension_service.h |
index 112bd08a083aa3cc0be866837df0745fe9fc4c81..86b61745c46ddebd1b75471a88d90352b2928037 100644 |
--- a/chrome/browser/extensions/extension_service.h |
+++ b/chrome/browser/extensions/extension_service.h |
@@ -158,6 +158,10 @@ class ExtensionService |
// settings are stored. |
static const char* kSyncExtensionSettingsDirectoryName; |
+ // Returns true if platform apps should be run in their own user data |
+ // directory. |
+ static bool PlatformAppRequiresSeparateDataDirectory(); |
+ |
// Determine if a given extension download should be treated as if it came |
// from the gallery. Note that this is requires *both* that the download_url |
// match and that the download was referred from a gallery page. |
@@ -694,6 +698,22 @@ class ExtensionService |
NaClModuleInfoList::iterator FindNaClModule(const GURL& url); |
+ // Sets up preferences for a newly installed extension. |page_ordinal| is |
+ // order the extension should show up in the NTP. |initial_enable| is true |
+ // if the extension should be enabled. |
+ void SetupExtensionPrefs(ExtensionPrefs* prefs, |
+ const Extension* extension, |
+ bool from_webstore, |
+ const StringOrdinal& page_ordinal, |
+ bool initial_enable); |
+ |
+ // Sets up preferences for a newly installed extension in a new data |
+ // directory. |page_ordinal| is order the extension should show up in the NTP. |
+ void SetupExtensionPrefsInSeparateDataDirectory( |
+ const Extension* extension, |
+ bool from_webstore, |
+ const StringOrdinal& page_ordinal); |
+ |
// The profile this ExtensionService is part of. |
Profile* profile_; |