diff options
author | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-17 11:49:25 +0000 |
---|---|---|
committer | wez@chromium.org <wez@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-17 11:49:25 +0000 |
commit | 1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5 (patch) | |
tree | 7138c88a5e12fc12ff0c27d16a72c71acb91b68e /chrome/common/chrome_paths.cc | |
parent | 7c24af349c6756ada9398c77783794c067a639cc (diff) | |
download | chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.zip chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.gz chromium_src-1a40dd7f41286f3d8220a3711ff7f89cf7b4efe5.tar.bz2 |
Move media library path resolution into Chrome path provider.
BUG=None
TEST=None
Review URL: http://codereview.chromium.org/6537022
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78532 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/chrome_paths.cc')
-rw-r--r-- | chrome/common/chrome_paths.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc index 35c01d1..1b3061f 100644 --- a/chrome/common/chrome_paths.cc +++ b/chrome/common/chrome_paths.cc @@ -195,6 +195,14 @@ bool PathProvider(int key, FilePath* result) { if (!GetInternalPluginsDirectory(&cur)) return false; break; + case chrome::DIR_MEDIA_LIBS: +#if defined(OS_MACOSX) + *result = base::mac::MainAppBundlePath(); + *result = result->Append("Libraries"); + return true; +#else + return PathService::Get(chrome::DIR_APP, result); +#endif case chrome::FILE_LOCAL_STATE: if (!PathService::Get(chrome::DIR_USER_DATA, &cur)) return false; |