Commit f9ab8a67 authored by Nico Weber's avatar Nico Weber

Work more on getting things built with -Wimplicit-fallthrough.

This CL was uploaded by git cl split.

R=mkwst@chromium.org

Bug: 177475
Change-Id: I82a3074bce458d21c5a12300d54c8bf421a5b4de
Reviewed-on: https://chromium-review.googlesource.com/889948Reviewed-by: default avatarMike West <mkwst@chromium.org>
Cr-Commit-Position: refs/heads/master@{#532842}
parent 7cf87827
...@@ -206,6 +206,7 @@ ResourceRequestBlockedReason BaseFetchContext::CanRequestInternal( ...@@ -206,6 +206,7 @@ ResourceRequestBlockedReason BaseFetchContext::CanRequestInternal(
break; break;
case Resource::kXSLStyleSheet: case Resource::kXSLStyleSheet:
DCHECK(RuntimeEnabledFeatures::XSLTEnabled()); DCHECK(RuntimeEnabledFeatures::XSLTEnabled());
FALLTHROUGH;
case Resource::kSVGDocument: case Resource::kSVGDocument:
if (!security_origin->CanRequest(url)) { if (!security_origin->CanRequest(url)) {
PrintAccessDeniedMessage(url); PrintAccessDeniedMessage(url);
......
...@@ -417,7 +417,7 @@ void DocumentLoader::LoadFailed(const ResourceError& error) { ...@@ -417,7 +417,7 @@ void DocumentLoader::LoadFailed(const ResourceError& error) {
switch (state_) { switch (state_) {
case kNotStarted: case kNotStarted:
probe::frameClearedScheduledClientNavigation(frame_); probe::frameClearedScheduledClientNavigation(frame_);
// Fall-through FALLTHROUGH;
case kProvisional: case kProvisional:
state_ = kSentDidFinishLoad; state_ = kSentDidFinishLoad;
GetLocalFrameClient().DispatchDidFailProvisionalLoad(error, GetLocalFrameClient().DispatchDidFailProvisionalLoad(error,
......
...@@ -102,7 +102,7 @@ void SubresourceFilter::ReportLoad( ...@@ -102,7 +102,7 @@ void SubresourceFilter::ReportLoad(
kOtherMessageSource, kErrorMessageLevel, kOtherMessageSource, kErrorMessageLevel,
GetErrorStringForDisallowedLoad(resource_url))); GetErrorStringForDisallowedLoad(resource_url)));
} }
// fall through FALLTHROUGH;
case WebDocumentSubresourceFilter::kWouldDisallow: case WebDocumentSubresourceFilter::kWouldDisallow:
// TODO(csharrison): Consider posting a task to the main thread from // TODO(csharrison): Consider posting a task to the main thread from
// worker thread, or adding support for DidObserveLoadingBehavior to // worker thread, or adding support for DidObserveLoadingBehavior to
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment