summaryrefslogtreecommitdiffstats
path: root/netwerk/protocol/device/nsDeviceChannel.cpp
diff options
context:
space:
mode:
authorMatt A. Tobin <email@mattatobin.com>2020-02-22 20:10:23 -0500
committerMatt A. Tobin <email@mattatobin.com>2020-02-22 20:10:23 -0500
commitbdad2357a1f0d2aca7f1106f3195d1fd929dc1d1 (patch)
tree2166aa86e8378b6973e9ebc95b748ad9c632abb1 /netwerk/protocol/device/nsDeviceChannel.cpp
parent881c1e5f180c537b003b891dce7d7f114800ff3e (diff)
downloadUXP-bdad2357a1f0d2aca7f1106f3195d1fd929dc1d1.tar
UXP-bdad2357a1f0d2aca7f1106f3195d1fd929dc1d1.tar.gz
UXP-bdad2357a1f0d2aca7f1106f3195d1fd929dc1d1.tar.lz
UXP-bdad2357a1f0d2aca7f1106f3195d1fd929dc1d1.tar.xz
UXP-bdad2357a1f0d2aca7f1106f3195d1fd929dc1d1.zip
Issue #1053 - Remove android support from netwerk
Diffstat (limited to 'netwerk/protocol/device/nsDeviceChannel.cpp')
-rw-r--r--netwerk/protocol/device/nsDeviceChannel.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/netwerk/protocol/device/nsDeviceChannel.cpp b/netwerk/protocol/device/nsDeviceChannel.cpp
index 6c5788a56..d8b6900e8 100644
--- a/netwerk/protocol/device/nsDeviceChannel.cpp
+++ b/netwerk/protocol/device/nsDeviceChannel.cpp
@@ -7,11 +7,6 @@
#include "nsDeviceChannel.h"
#include "nsDeviceCaptureProvider.h"
-#ifdef MOZ_WIDGET_ANDROID
-#include "mozilla/Preferences.h"
-#include "AndroidCaptureProvider.h"
-#endif
-
using namespace mozilla;
// Copied from image/decoders/icon/nsIconURI.cpp
@@ -112,9 +107,6 @@ nsDeviceChannel::OpenContentStream(bool aAsync,
extractAttributeValue(spec.get(), "camera=", buffer);
captureParams.camera = buffer.ToInteger(&err);
captureParams.bpp = 32;
-#ifdef MOZ_WIDGET_ANDROID
- capture = GetAndroidCaptureProvider();
-#endif
} else if (kNotFound != spec.Find(NS_LITERAL_CSTRING("type=video/x-raw-yuv"),
true,
0,
@@ -138,11 +130,6 @@ nsDeviceChannel::OpenContentStream(bool aAsync,
captureParams.bpp = 32;
captureParams.timeLimit = 0;
captureParams.frameLimit = 60000;
-#ifdef MOZ_WIDGET_ANDROID
- // only enable if "device.camera.enabled" is true.
- if (Preferences::GetBool("device.camera.enabled", false) == true)
- capture = GetAndroidCaptureProvider();
-#endif
} else {
return NS_ERROR_NOT_IMPLEMENTED;
}