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

Unified Diff: chrome/renderer/render_process_impl.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/renderer/render_process_impl.cc
diff --git a/chrome/renderer/render_process_impl.cc b/chrome/renderer/render_process_impl.cc
index e3ff26353c74abd28722076227a8178d97e83c5d..3634ef68ab8be71554cb2149cf0ccfc4213d0b47 100644
--- a/chrome/renderer/render_process_impl.cc
+++ b/chrome/renderer/render_process_impl.cc
@@ -130,21 +130,15 @@ RenderProcessImpl::RenderProcessImpl()
base::StatisticsRecorder::set_dump_on_exit(true);
}
-#if defined(OS_MACOSX)
- FilePath bundle_path = base::mac::MainAppBundlePath();
-
- initialized_media_library_ =
- media::InitializeMediaLibrary(bundle_path.Append("Libraries"));
-#else
- FilePath module_path;
- initialized_media_library_ =
- PathService::Get(base::DIR_MODULE, &module_path) &&
- media::InitializeMediaLibrary(module_path);
+ FilePath media_path;
+ CHECK(PathService::Get(chrome::DIR_MEDIA_LIBS, &media_path));
+ initialized_media_library_ = media::InitializeMediaLibrary(media_path);
+#if !defined(OS_MACOSX)
scherkus (not reviewing) 2011/02/17 17:57:10 I'm curious... I wonder if we can remove this rest
// TODO(hclam): Add more checks here. Currently this is not used.
if (CommandLine::ForCurrentProcess()->HasSwitch(
switches::kEnableOpenMax)) {
- media::InitializeOpenMaxLibrary(module_path);
+ media::InitializeOpenMaxLibrary(media_path);
}
#endif

Powered by Google App Engine
This is Rietveld 408576698