| Index: chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
|
| diff --git a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
|
| index 70cf9d54bd2a9b837e0a529cd39f1aaa62d17229..58bd7605339b1025c049291f5b0ab663815eefe7 100644
|
| --- a/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
|
| +++ b/chrome/browser/extensions/api/desktop_capture/desktop_capture_api.cc
|
| @@ -12,6 +12,7 @@
|
| #include "content/public/browser/render_process_host.h"
|
| #include "content/public/browser/render_view_host.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/common/origin_util.h"
|
| #include "net/base/net_util.h"
|
|
|
| namespace extensions {
|
| @@ -66,11 +67,11 @@ bool DesktopCaptureChooseDesktopMediaFunction::RunAsync() {
|
|
|
| if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| switches::kAllowHttpScreenCapture) &&
|
| - !origin.SchemeIsSecure()) {
|
| + !content::IsOriginSecure(origin)) {
|
| error_ = kTabUrlNotSecure;
|
| return false;
|
| }
|
| - target_name = base::UTF8ToUTF16(origin.SchemeIsSecure() ?
|
| + target_name = base::UTF8ToUTF16(content::IsOriginSecure(origin) ?
|
| net::GetHostAndOptionalPort(origin) : origin.spec());
|
|
|
| if (!params->target_tab->id) {
|
|
|