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

Unified Diff: chrome/browser/extensions/extension_service.h

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, address review comments Created 8 years, 10 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/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_;

Powered by Google App Engine
This is Rietveld 408576698