| Index: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
|
| diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
|
| index 26e3ada761a5880d9fa917960c7aa581dc4ab15d..c0f9a3515d22c54317df39b186993de98e5d420b 100644
|
| --- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
|
| +++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
|
| @@ -13,6 +13,7 @@
|
| #include "core/events/Event.h"
|
| #include "core/html/HTMLMediaElement.h"
|
| #include "modules/EventTargetModules.h"
|
| +#include "platform/MemoryCoordinator.h"
|
| #include "platform/UserGestureIndicator.h"
|
|
|
| namespace blink {
|
| @@ -72,8 +73,13 @@ ScriptPromise RemotePlayback::watchAvailability(
|
| return promise;
|
| }
|
|
|
| - // TODO(avayvod): implement steps 4 and 5 of the algorithm.
|
| - // https://crbug.com/655233
|
| + if (MemoryCoordinator::instance().isLowEndDevice()) {
|
| + resolver->reject(DOMException::create(
|
| + NotSupportedError,
|
| + "Availability monitoring is not supported on this device."));
|
| + return promise;
|
| + }
|
| +
|
| int id;
|
| do {
|
| id = getExecutionContext()->circularSequentialID();
|
|
|