Index: base/base_paths_posix.cc |
diff --git a/base/base_paths_posix.cc b/base/base_paths_posix.cc |
index a1c45a03df1c470bd15a9af31044ac4241780bc4..ce154688146e80c8ee72a134a4cc5502f2c05f49 100644 |
--- a/base/base_paths_posix.cc |
+++ b/base/base_paths_posix.cc |
@@ -99,12 +99,18 @@ bool PathProviderPosix(int key, FilePath* result) { |
<< "Try running from your chromium/src directory."; |
return false; |
} |
- case base::DIR_CACHE: |
+ case base::DIR_CACHE: { |
scoped_ptr<base::Environment> env(base::Environment::Create()); |
FilePath cache_dir(base::nix::GetXDGDirectory(env.get(), "XDG_CACHE_HOME", |
".cache")); |
*result = cache_dir; |
return true; |
+ } |
+ case base::DIR_MEDIA_LIBS: { |
+ if (!PathService::Get(base::DIR_MODULE, result)) |
+ return false; |
+ return true; |
+ } |
} |
return false; |
} |