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

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

Issue 9374009: Install platform apps into a separate data directory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test 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/common/extensions/extension.cc
diff --git a/chrome/common/extensions/extension.cc b/chrome/common/extensions/extension.cc
index 2cc7c127384022e1a7cd0f4a8f7f755b8074c62a..56d6924283b2ce175a5aa4fbd56608931ba25df1 100644
--- a/chrome/common/extensions/extension.cc
+++ b/chrome/common/extensions/extension.cc
@@ -382,6 +382,15 @@ GURL Extension::GetBackgroundURL() const {
}
}
+bool Extension::RequiresSeparateUserDataDirectory() const {
+ // Currently separate data directories are only supported on Mac OSX.
+#if defined(OS_MACOSX)
+ return is_platform_app();
+#else
+ return false;
+#endif
+}
+
bool Extension::IsResourceWebAccessible(const std::string& relative_path)
const {
// For old manifest versions which do not specify web_accessible_resources

Powered by Google App Engine
This is Rietveld 408576698