Index: content/renderer/render_view_impl.cc |
diff --git a/content/renderer/render_view_impl.cc b/content/renderer/render_view_impl.cc |
index da05c5ff6b54a849cce60518ba0aa959a9fc4018..7cf71b778f64c9b478808617ee1304e9dfdd81e3 100644 |
--- a/content/renderer/render_view_impl.cc |
+++ b/content/renderer/render_view_impl.cc |
@@ -99,6 +99,7 @@ |
#include "content/renderer/websharedworker_proxy.h" |
#include "media/audio/audio_output_device.h" |
#include "media/base/media_switches.h" |
+#include "media/media_features.h" |
#include "media/renderers/audio_renderer_impl.h" |
#include "media/renderers/gpu_video_accelerator_factories.h" |
#include "net/base/data_url.h" |
@@ -193,7 +194,7 @@ |
#include "content/renderer/pepper/pepper_plugin_registry.h" |
#endif |
-#if defined(ENABLE_WEBRTC) |
+#if BUILDFLAG(ENABLE_WEBRTC) |
#include "content/renderer/media/rtc_peer_connection_handler.h" |
#include "content/renderer/media/webrtc/peer_connection_dependency_factory.h" |
#endif |
@@ -2342,7 +2343,7 @@ void RenderViewImpl::Close() { |
} |
void RenderViewImpl::OnPageWasHidden() { |
-#if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
+#if defined(OS_ANDROID) && BUILDFLAG(ENABLE_WEBRTC) |
RenderThreadImpl::current()->video_capture_impl_manager()-> |
SuspendDevices(true); |
if (speech_recognition_dispatcher_) |
@@ -2362,7 +2363,7 @@ void RenderViewImpl::OnPageWasHidden() { |
} |
void RenderViewImpl::OnPageWasShown() { |
-#if defined(OS_ANDROID) && defined(ENABLE_WEBRTC) |
+#if defined(OS_ANDROID) && BUILDFLAG(ENABLE_WEBRTC) |
RenderThreadImpl::current()->video_capture_impl_manager()-> |
SuspendDevices(false); |
#endif |