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

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: Created 9 years, 10 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: chrome/common/chrome_paths.cc
diff --git a/chrome/common/chrome_paths.cc b/chrome/common/chrome_paths.cc
index 584bd9e51ab55c1cc8c8f1619f02fdc9dbf62f5a..5501310568c361a3734acbda46fe6c7dbdc9703d 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -187,6 +187,13 @@ 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");
+#else
+ return PathService::Get(chrome::DIR_APP, result);
+#endif
case chrome::FILE_LOCAL_STATE:
if (!PathService::Get(chrome::DIR_USER_DATA, &cur))
return false;

Powered by Google App Engine
This is Rietveld 408576698