Index: third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
diff --git a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
index 6bf0562c66904f52a3488f441b94d88f34afdc68..a650be0b968f6484b43b7d0b42e523c6decbe232 100644 |
--- a/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
+++ b/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp |
@@ -3159,18 +3159,10 @@ void HTMLMediaElement::RemoteRouteAvailabilityChanged( |
WebRemotePlaybackAvailability availability) { |
if (RemotePlaybackClient()) |
RemotePlaybackClient()->AvailabilityChanged(availability); |
- |
- // TODO(mlamouri): the RemotePlayback object should be used in order to |
- // register to watch availability but the object is in modules/ and core/ has |
- // no access to it. It will have to be done when the media controls move to |
- // modules/. |
- if (GetMediaControls()) |
- GetMediaControls()->OnRemotePlaybackAvailabilityChanged(); |
} |
bool HTMLMediaElement::HasRemoteRoutes() const { |
- // TODO(mlamouri): this is only used for controls related code. It shouldn't |
- // live in HTMLMediaElement. |
+ // TODO(mlamouri): used by MediaControlsPainter; should be refactored out. |
return RemotePlaybackClient() && |
RemotePlaybackClient()->RemotePlaybackAvailable(); |
} |
@@ -3179,24 +3171,12 @@ void HTMLMediaElement::ConnectedToRemoteDevice() { |
playing_remotely_ = true; |
if (RemotePlaybackClient()) |
RemotePlaybackClient()->StateChanged(WebRemotePlaybackState::kConnecting); |
- |
- // TODO(mlamouri): the RemotePlayback object should be used in order to listen |
- // for events but the object is in modules/ and core/ has no access to it. It |
- // will have to be done when the media controls move to modules/. |
- if (GetMediaControls()) |
- GetMediaControls()->OnRemotePlaybackConnecting(); |
} |
void HTMLMediaElement::DisconnectedFromRemoteDevice() { |
playing_remotely_ = false; |
if (RemotePlaybackClient()) |
RemotePlaybackClient()->StateChanged(WebRemotePlaybackState::kDisconnected); |
- |
- // TODO(mlamouri): the RemotePlayback object should be used in order to listen |
- // for events but the object is in modules/ and core/ has no access to it. It |
- // will have to be done when the media controls move to modules/. |
- if (GetMediaControls()) |
- GetMediaControls()->OnRemotePlaybackDisconnected(); |
} |
void HTMLMediaElement::CancelledRemotePlaybackRequest() { |