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 46b95641d7496b1fc977e5a78db62985287c4354..9f22e0726fce434f40fda6be17497ce07acd8cbe 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" |
@@ -123,7 +124,7 @@ base::string16 MediaStreamInfoBarDelegate::GetButtonLabel( |
bool MediaStreamInfoBarDelegate::Accept() { |
GURL origin(controller_->GetSecurityOriginSpec()); |
- if (origin.SchemeIsSecure()) { |
+ if (content::IsOriginSecure(origin)) { |
UMA_HISTOGRAM_ENUMERATION("Media.DevicePermissionActions", |
kAllowHttps, kPermissionActionsMax); |
} else { |