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

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: fix comment 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 3e105e6ae9c516b1dd9be6673c81ce2cf52cc63e..13c036e43d40860e05fa62a9af40f2acfb422e2d 100644
--- a/chrome/browser/extensions/extension_service.h
+++ b/chrome/browser/extensions/extension_service.h
@@ -159,6 +159,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.
@@ -704,6 +708,20 @@ class ExtensionService
NaClModuleInfoList::iterator FindNaClModule(const GURL& url);
+ // Sets up preferences for a newly installed extension.
Robert Sesek 2012/02/09 18:43:59 Document the page_ordinal and initial_enable param
sail 2012/02/10 00:13:18 Done.
+ 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.
+ 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