Index: chrome/browser/media/media_stream_devices_controller.cc |
diff --git a/chrome/browser/media/media_stream_devices_controller.cc b/chrome/browser/media/media_stream_devices_controller.cc |
index c01e52e1549802ab2c528f83181eb4ca00c7190b..44f449bfb5ea2bdb8bf194f9c3ebc07f518332a5 100644 |
--- a/chrome/browser/media/media_stream_devices_controller.cc |
+++ b/chrome/browser/media/media_stream_devices_controller.cc |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/profiles/profile.h" |
#include "chrome/browser/ui/browser.h" |
#include "chrome/common/chrome_switches.h" |
+#include "chrome/common/features.h" |
#include "chrome/common/pref_names.h" |
#include "chrome/grit/generated_resources.h" |
#include "components/content_settings/core/browser/host_content_settings_map.h" |
@@ -37,14 +38,14 @@ |
#include "grit/theme_resources.h" |
#include "ui/base/l10n/l10n_util.h" |
-#if defined(OS_ANDROID) |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
#include <vector> |
#include "chrome/browser/android/preferences/pref_service_bridge.h" |
#include "chrome/browser/permissions/permission_update_infobar_delegate_android.h" |
#include "content/public/browser/android/content_view_core.h" |
#include "ui/android/window_android.h" |
-#endif // OS_ANDROID |
+#endif // BUILDFLAG(ANDROID_JAVA_UI) |
using content::BrowserThread; |
@@ -170,7 +171,7 @@ MediaStreamDevicesController::MediaStreamDevicesController( |
return; |
} |
-#if defined(OS_ANDROID) |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
std::vector<ContentSettingsType> content_settings_types; |
if (IsAllowedForAudio()) |
content_settings_types.push_back(CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC); |
@@ -584,7 +585,7 @@ ContentSetting MediaStreamDevicesController::GetNewSetting( |
bool MediaStreamDevicesController::IsUserAcceptAllowed( |
ContentSettingsType content_type) const { |
-#if defined(OS_ANDROID) |
+#if BUILDFLAG(ANDROID_JAVA_UI) |
content::ContentViewCore* cvc = |
content::ContentViewCore::FromWebContents(web_contents_); |
if (!cvc) |