Index: content/shell/renderer/layout_test/layout_test_content_renderer_client.cc |
diff --git a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc |
index 4fc97bdc4bfa32a455dc6a1d94c765854d5cc46b..8b5860f46c7290d8d70b8bfe986378319282518c 100644 |
--- a/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc |
+++ b/content/shell/renderer/layout_test/layout_test_content_renderer_client.cc |
@@ -30,6 +30,7 @@ |
#include "content/shell/renderer/shell_render_view_observer.h" |
#include "content/test/mock_webclipboard_impl.h" |
#include "gin/modules/module_registry.h" |
+#include "media/media_features.h" |
#include "ppapi/shared_impl/ppapi_switches.h" |
#include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
#include "third_party/WebKit/public/web/WebFrameWidget.h" |
@@ -164,7 +165,7 @@ void LayoutTestContentRendererClient::RenderViewCreated( |
WebMediaStreamCenter* |
LayoutTestContentRendererClient::OverrideCreateWebMediaStreamCenter( |
WebMediaStreamCenterClient* client) { |
-#if defined(ENABLE_WEBRTC) |
+#if BUILDFLAG(ENABLE_WEBRTC) |
test_runner::WebTestInterfaces* interfaces = |
LayoutTestRenderThreadObserver::GetInstance()->test_interfaces(); |
return interfaces->CreateMediaStreamCenter(client); |
@@ -176,7 +177,7 @@ LayoutTestContentRendererClient::OverrideCreateWebMediaStreamCenter( |
WebRTCPeerConnectionHandler* |
LayoutTestContentRendererClient::OverrideCreateWebRTCPeerConnectionHandler( |
WebRTCPeerConnectionHandlerClient* client) { |
-#if defined(ENABLE_WEBRTC) |
+#if BUILDFLAG(ENABLE_WEBRTC) |
test_runner::WebTestInterfaces* interfaces = |
LayoutTestRenderThreadObserver::GetInstance()->test_interfaces(); |
return interfaces->CreateWebRTCPeerConnectionHandler(client); |
@@ -215,7 +216,7 @@ WebThemeEngine* LayoutTestContentRendererClient::OverrideThemeEngine() { |
std::unique_ptr<MediaStreamRendererFactory> |
LayoutTestContentRendererClient::CreateMediaStreamRendererFactory() { |
-#if defined(ENABLE_WEBRTC) |
+#if BUILDFLAG(ENABLE_WEBRTC) |
return std::unique_ptr<MediaStreamRendererFactory>( |
new TestMediaStreamRendererFactory()); |
#else |