Chromium Code Reviews| Index: third_party/WebKit/Source/modules/geolocation/Geolocation.cpp |
| diff --git a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp |
| index 036b29e820c6a6426612f9dea719ddb00a1122c2..db3627a087f2716cc711c2a93039d644073b8183 100644 |
| --- a/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp |
| +++ b/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp |
| @@ -155,6 +155,12 @@ void Geolocation::recordOriginTypeAccess() const |
| if (document->isSecureContext(insecureOriginMsg)) { |
| UseCounter::count(document, UseCounter::GeolocationSecureOrigin); |
| UseCounter::countCrossOriginIframe(*document, UseCounter::GeolocationSecureOriginIframe); |
| + } else if (frame()->settings()->allowGeolocationOnInsecureOrigins()) { |
| + // TODO(jww): This should be removed after WebView is fixed so that it |
|
Rick Byers
2016/05/04 13:57:07
nit: have a bug number to reference?
jww
2016/05/05 19:17:41
Done.
|
| + // disallows geolocation in insecure contexts. |
| + Deprecation::countDeprecation(document, UseCounter::GeolocationInsecureOriginDeprecatedNotRemoved); |
| + Deprecation::countDeprecationCrossOriginIframe(*document, UseCounter::GeolocationInsecureOriginIframeDeprecatedNotRemoved); |
| + OriginsUsingFeatures::countAnyWorld(*document, OriginsUsingFeatures::Feature::GeolocationInsecureOrigin); |
| } else { |
| Deprecation::countDeprecation(document, UseCounter::GeolocationInsecureOrigin); |
| Deprecation::countDeprecationCrossOriginIframe(*document, UseCounter::GeolocationInsecureOriginIframe); |