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

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: And again, this time with working tests... 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 afa0b7aea775e77e5391a8686e47d126e1d005e9..261f48f429d7b6b56269cf91a65f5faa8e81c9ba 100644
--- a/chrome/common/chrome_paths.cc
+++ b/chrome/common/chrome_paths.cc
@@ -208,6 +208,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