Chromium Code Reviews| Index: third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp |
| diff --git a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp |
| index 8bc5052f76bbfc6dbdc72146772a104c0f6a140d..306f210e5925869403a15d30526f579e71a174fe 100644 |
| --- a/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp |
| +++ b/third_party/WebKit/Source/core/html/shadow/MediaControlElements.cpp |
| @@ -700,6 +700,10 @@ bool MediaControlDownloadButtonElement::shouldDisplayDownloadButton() { |
| if (mediaElement().duration() == std::numeric_limits<double>::infinity()) |
| return false; |
| + // The attribute disables the download button. |
| + if (mediaElement().controlsList()->tokens().contains("nodownload")) |
| + return false; |
|
mlamouri (slow - plz ping)
2017/03/03 17:32:44
Can you add a histogram that reports how many time
whywhat
2017/03/07 12:59:46
Done.
|
| + |
| return true; |
| } |