| Index: content/renderer/media/android/webmediaplayer_android.cc
|
| diff --git a/content/renderer/media/android/webmediaplayer_android.cc b/content/renderer/media/android/webmediaplayer_android.cc
|
| index 3ce2c1e621f04709146d91462dbc964072f704d3..c98fb5aae2777efcf8fa7651b80bf2cdd4bbc988 100644
|
| --- a/content/renderer/media/android/webmediaplayer_android.cc
|
| +++ b/content/renderer/media/android/webmediaplayer_android.cc
|
| @@ -55,6 +55,7 @@
|
| #include "third_party/WebKit/public/platform/WebContentDecryptionModuleResult.h"
|
| #include "third_party/WebKit/public/platform/WebEncryptedMediaTypes.h"
|
| #include "third_party/WebKit/public/platform/WebGraphicsContext3DProvider.h"
|
| +#include "third_party/WebKit/public/platform/WebMediaElementSource.h"
|
| #include "third_party/WebKit/public/platform/WebMediaPlayerClient.h"
|
| #include "third_party/WebKit/public/platform/WebMediaPlayerEncryptedMediaClient.h"
|
| #include "third_party/WebKit/public/platform/WebSecurityOrigin.h"
|
| @@ -298,8 +299,11 @@ WebMediaPlayerAndroid::~WebMediaPlayerAndroid() {
|
| }
|
|
|
| void WebMediaPlayerAndroid::load(LoadType load_type,
|
| - const blink::WebURL& url,
|
| + const blink::WebMediaElementSource& source,
|
| CORSMode cors_mode) {
|
| + // Only URL is supported.
|
| + DCHECK(source.isURL());
|
| + blink::WebURL url = source.getAsURL();
|
| if (!defer_load_cb_.is_null()) {
|
| defer_load_cb_.Run(base::Bind(&WebMediaPlayerAndroid::DoLoad,
|
| weak_factory_.GetWeakPtr(), load_type, url,
|
|
|