Chromium Code Reviews| 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 |