summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 21:43:58 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-27 21:43:58 +0000
commit8463c8db63491878163fa0a43b31be61fb8ccf54 (patch)
tree94de537edf13c519cd4b3c0d17d76aca28fa210c /chrome/common/chrome_paths.cc
parent88b460b939077577521fe6119a3682b17992eeae (diff)
downloadchromium_src-8463c8db63491878163fa0a43b31be61fb8ccf54.zip
chromium_src-8463c8db63491878163fa0a43b31be61fb8ccf54.tar.gz
chromium_src-8463c8db63491878163fa0a43b31be61fb8ccf54.tar.bz2
app: Get rid of app_paths.[cc,h] files.
BUG=72317 TEST=None R=rsesek@chromium.org Review URL: http://codereview.chromium.org/7262020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@90651 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index a8d1dd8..9b817d3 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -308,6 +308,20 @@ bool PathProvider(int key, FilePath* result) {
break;
}
#endif
+ case chrome::DIR_EXTERNAL_EXTENSIONS:
+ if (!PathService::Get(base::DIR_MODULE, &cur))
+ return false;
+#if defined(OS_MACOSX)
+ // On Mac, built-in extensions are in Contents/Extensions, a sibling of
+ // the App dir. If there are none, it may not exist.
+ cur = cur.DirName();
+ cur = cur.Append(FILE_PATH_LITERAL("Extensions"));
+ create_dir = false;
+#else
+ cur = cur.Append(FILE_PATH_LITERAL("extensions"));
+ create_dir = true;
+#endif
+ break;
default:
return false;
}