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..8002e9e6b30bc0f998f606973f0a030f1adc1cfd 100644 |
--- a/chrome/browser/media/media_stream_infobar_delegate.cc |
+++ b/chrome/browser/media/media_stream_infobar_delegate.cc |
@@ -8,6 +8,7 @@ |
#include "base/metrics/histogram.h" |
#include "base/strings/utf_string_conversions.h" |
#include "chrome/browser/infobars/infobar_service.h" |
+#include "chrome/common/origin_util.h" |
#include "chrome/common/url_constants.h" |
#include "chrome/grit/generated_resources.h" |
#include "components/google/core/browser/google_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 { |