| Index: third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
|
| diff --git a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
|
| index 372ad0ebc0f9b8686da09ad53c5bef131ddb3ba4..3fc603f81f63234cb1f4af2bbd090dcc3a46183f 100644
|
| --- a/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
|
| +++ b/third_party/WebKit/Source/modules/media_controls/MediaControlsImpl.cpp
|
| @@ -46,9 +46,11 @@
|
| #include "modules/media_controls/MediaControlsMediaEventListener.h"
|
| #include "modules/media_controls/MediaControlsOrientationLockDelegate.h"
|
| #include "modules/media_controls/MediaControlsWindowEventListener.h"
|
| +#include "modules/media_controls/elements/MediaControlCurrentTimeDisplayElement.h"
|
| #include "modules/media_controls/elements/MediaControlMuteButtonElement.h"
|
| #include "modules/media_controls/elements/MediaControlOverlayEnclosureElement.h"
|
| #include "modules/media_controls/elements/MediaControlPanelEnclosureElement.h"
|
| +#include "modules/media_controls/elements/MediaControlTimeRemainingDisplayElement.h"
|
| #include "platform/EventDispatchForbiddenScope.h"
|
|
|
| namespace blink {
|
| @@ -324,16 +326,12 @@ void MediaControlsImpl::InitializeControls() {
|
| play_button_ = play_button;
|
| panel->AppendChild(play_button);
|
|
|
| - MediaControlCurrentTimeDisplayElement* current_time_display =
|
| - MediaControlCurrentTimeDisplayElement::Create(*this);
|
| - current_time_display_ = current_time_display;
|
| + current_time_display_ = new MediaControlCurrentTimeDisplayElement(*this);
|
| current_time_display_->SetIsWanted(true);
|
| - panel->AppendChild(current_time_display);
|
| + panel->AppendChild(current_time_display_);
|
|
|
| - MediaControlTimeRemainingDisplayElement* duration_display =
|
| - MediaControlTimeRemainingDisplayElement::Create(*this);
|
| - duration_display_ = duration_display;
|
| - panel->AppendChild(duration_display);
|
| + duration_display_ = new MediaControlTimeRemainingDisplayElement(*this);
|
| + panel->AppendChild(duration_display_);
|
|
|
| MediaControlTimelineElement* timeline =
|
| MediaControlTimelineElement::Create(*this);
|
|
|