summaryrefslogtreecommitdiffstats
path: root/chrome/common/chrome_paths.cc
diff options
context:
space:
mode:
authorthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 17:18:43 +0000
committerthomasvl@chromium.org <thomasvl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-28 17:18:43 +0000
commit540bea826a8942aafaed9e1318e2e3065b0a4ba7 (patch)
tree8c0772725a30bc23e021461ee59f0d451eed7220 /chrome/common/chrome_paths.cc
parent1f46007516b8ab87a9089bfab64621595b869e54 (diff)
downloadchromium_src-540bea826a8942aafaed9e1318e2e3065b0a4ba7.zip
chromium_src-540bea826a8942aafaed9e1318e2e3065b0a4ba7.tar.gz
chromium_src-540bea826a8942aafaed9e1318e2e3065b0a4ba7.tar.bz2
Move the Dictionary dir on the Mac out of the package and into user data.
BUG=8317 TEST=make sure we don't create a dictionary directory within the app. Review URL: http://codereview.chromium.org/115863 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17079 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r--chrome/common/chrome_paths.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index d4f2f16..7987d34e 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -93,9 +93,11 @@ bool PathProvider(int key, FilePath* result) {
#endif
break;
case chrome::DIR_APP_DICTIONARIES:
-#if defined(OS_LINUX)
+#if defined(OS_LINUX) || defined(OS_MACOSX)
// We can't write into the EXE dir on Linux, so keep dictionaries
// alongside the safe browsing database in the user data dir.
+ // And we don't want to write into the bundle on the Mac, so push
+ // it to the user data dir there also.
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
return false;
#else