Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(355)

Unified Diff: Source/core/html/shadow/MediaControlsAndroid.cpp

Issue 182383006: Remove unfailable null checks in MediaControls (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/html/shadow/MediaControls.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/shadow/MediaControlsAndroid.cpp
diff --git a/Source/core/html/shadow/MediaControlsAndroid.cpp b/Source/core/html/shadow/MediaControlsAndroid.cpp
index 6943ae5f847da28221246aa63c2cba8c0265d5c2..50043676abf32dea9d729fd6d121b63b868f66ef 100644
--- a/Source/core/html/shadow/MediaControlsAndroid.cpp
+++ b/Source/core/html/shadow/MediaControlsAndroid.cpp
@@ -59,10 +59,8 @@ bool MediaControlsAndroid::initializeControls(Document& document)
void MediaControlsAndroid::setMediaController(MediaControllerInterface* controller)
{
- if (m_overlayPlayButton)
- m_overlayPlayButton->setMediaController(controller);
- if (m_overlayEnclosure)
- m_overlayEnclosure->setMediaController(controller);
+ m_overlayPlayButton->setMediaController(controller);
+ m_overlayEnclosure->setMediaController(controller);
MediaControls::setMediaController(controller);
}
« no previous file with comments | « Source/core/html/shadow/MediaControls.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698