| Index: content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc
|
| diff --git a/content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc b/content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc
|
| index 542923f008033058eaeb081bf6a200f90e09fb03..208edd3ef5d77d3dee21d4fb640753c20f5698fd 100644
|
| --- a/content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc
|
| +++ b/content/renderer/media/cdm/pepper_cdm_wrapper_impl.cc
|
| @@ -19,6 +19,7 @@
|
| #include "third_party/WebKit/public/web/WebPlugin.h"
|
| #include "third_party/WebKit/public/web/WebPluginContainer.h"
|
| #include "third_party/WebKit/public/web/WebView.h"
|
| +#include "url/origin.h"
|
|
|
| namespace content {
|
|
|
| @@ -37,8 +38,7 @@ std::unique_ptr<PepperCdmWrapper> PepperCdmWrapperImpl::Create(
|
| // Note: The code will continue after navigation to the "same" origin, even
|
| // though the CDM is no longer necessary.
|
| // TODO: Consider avoiding this possibility entirely. http://crbug.com/575236
|
| - GURL frame_security_origin(
|
| - blink::WebStringToGURL(frame->getSecurityOrigin().toString()));
|
| + GURL frame_security_origin(url::Origin(frame->getSecurityOrigin()).GetURL());
|
| if (frame_security_origin != security_origin) {
|
| LOG(ERROR) << "Frame has a different origin than the EME call.";
|
| return std::unique_ptr<PepperCdmWrapper>();
|
|
|