Commit 7639980f authored by Stuart Langley's avatar Stuart Langley Committed by Commit Bot

Remove the indirection through FrameLoader() to get the LocalFrameClient().

Bug: 
Change-Id: Ica61e6cd7a1932124296f00aea1b8e73400f74d0
Reviewed-on: https://chromium-review.googlesource.com/544451Reviewed-by: default avatarDaniel Cheng <dcheng@chromium.org>
Commit-Queue: Stuart Langley <slangley@chromium.org>
Cr-Commit-Position: refs/heads/master@{#481815}
parent 0f268cb3
......@@ -69,7 +69,6 @@
#include "core/layout/LayoutMedia.h"
#include "core/layout/api/LayoutViewItem.h"
#include "core/layout/compositing/PaintLayerCompositor.h"
#include "core/loader/FrameLoader.h"
#include "core/page/ChromeClient.h"
#include "platform/Histogram.h"
#include "platform/LayoutTestSupport.h"
......@@ -528,7 +527,7 @@ HTMLMediaElement::HTMLMediaElement(const QualifiedName& tag_name,
LocalFrame* frame = document.GetFrame();
if (frame) {
remote_playback_client_ =
frame->Loader().Client()->CreateWebRemotePlaybackClient(*this);
frame->Client()->CreateWebRemotePlaybackClient(*this);
}
SetHasCustomStyleCallbacks();
......@@ -1252,7 +1251,7 @@ void HTMLMediaElement::StartPlayerLoad() {
}
web_media_player_ =
frame->Loader().Client()->CreateWebMediaPlayer(*this, source, this);
frame->Client()->CreateWebMediaPlayer(*this, source, this);
if (!web_media_player_) {
MediaLoadingFailed(WebMediaPlayer::kNetworkStateFormatError,
BuildElementErrorMessage(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment