Index: content/test/test_blink_web_unit_test_support.cc |
diff --git a/content/test/test_blink_web_unit_test_support.cc b/content/test/test_blink_web_unit_test_support.cc |
index 07391373019df8c74ea41870aca961fbb20dada4..177f7d6a98c38d5cb7d10363530ab004b1999b32 100644 |
--- a/content/test/test_blink_web_unit_test_support.cc |
+++ b/content/test/test_blink_web_unit_test_support.cc |
@@ -129,19 +129,9 @@ TestBlinkWebUnitTestSupport::TestBlinkWebUnitTestSupport() { |
blink::WebRuntimeFeatures::enableNotifications(true); |
blink::WebRuntimeFeatures::enableTouch(true); |
- // Load libraries for media and enable the media player. |
- bool enable_media = false; |
- base::FilePath module_path; |
- if (PathService::Get(base::DIR_MODULE, &module_path)) { |
-#if defined(OS_MACOSX) |
- if (base::mac::AmIBundled()) |
- module_path = module_path.DirName().DirName().DirName(); |
-#endif |
- if (media::InitializeMediaLibrary(module_path)) |
- enable_media = true; |
- } |
- blink::WebRuntimeFeatures::enableMediaPlayer(enable_media); |
- LOG_IF(WARNING, !enable_media) << "Failed to initialize the media library.\n"; |
+ // Initialize libraries for media and enable the media player. |
+ media::InitializeMediaLibrary(); |
+ blink::WebRuntimeFeatures::enableMediaPlayer(true); |
file_utilities_.set_sandbox_enabled(false); |