| Index: chrome/browser/media/media_stream_infobar_delegate.cc
|
| diff --git a/chrome/browser/media/media_stream_infobar_delegate.cc b/chrome/browser/media/media_stream_infobar_delegate.cc
|
| index c5940b8ee8e2ac0df5b0644856337b9ee7761771..1ff33a894113d420ad3f4f18b642f2f756787348 100644
|
| --- a/chrome/browser/media/media_stream_infobar_delegate.cc
|
| +++ b/chrome/browser/media/media_stream_infobar_delegate.cc
|
| @@ -13,6 +13,7 @@
|
| #include "components/google/core/browser/google_util.h"
|
| #include "components/infobars/core/infobar.h"
|
| #include "content/public/browser/web_contents.h"
|
| +#include "content/public/common/origin_util.h"
|
| #include "grit/components_strings.h"
|
| #include "grit/theme_resources.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| @@ -115,7 +116,7 @@ base::string16 MediaStreamInfoBarDelegate::GetButtonLabel(
|
|
|
| bool MediaStreamInfoBarDelegate::Accept() {
|
| GURL origin(controller_->GetSecurityOriginSpec());
|
| - if (origin.SchemeIsSecure()) {
|
| + if (IsOriginSecure(origin)) {
|
| UMA_HISTOGRAM_ENUMERATION("Media.DevicePermissionActions",
|
| kAllowHttps, kPermissionActionsMax);
|
| } else {
|
|
|