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

Unified Diff: base/base_paths_posix.cc

Issue 9316077: Enable audio/video tag in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comment; PathServiceTest.Get test still fails on mac Created 8 years, 9 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: 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;
}

Powered by Google App Engine
This is Rietveld 408576698