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

Unified Diff: chrome/common/chrome_paths.cc

Issue 6537022: Move media library path resolution into Chrome path provider. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Get rid of spurious changes in previous patch-set. Created 9 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
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/renderer/render_process_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 35c01d176f3150cac1bd21c93a829c5d1b8493be..1b3061f4cd69476453930a79e2b8ed61db1c2ab9 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;
« no previous file with comments | « chrome/common/chrome_paths.h ('k') | chrome/renderer/render_process_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698