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(
break;
case Resource::kXSLStyleSheet:
DCHECK(RuntimeEnabledFeatures::XSLTEnabled());
FALLTHROUGH;
case Resource::kSVGDocument:
if (!security_origin->CanRequest(url)) {
PrintAccessDeniedMessage(url);
......
......@@ -417,7 +417,7 @@ void DocumentLoader::LoadFailed(const ResourceError& error) {
switch (state_) {
case kNotStarted:
probe::frameClearedScheduledClientNavigation(frame_);
// Fall-through
FALLTHROUGH;
case kProvisional:
state_ = kSentDidFinishLoad;
GetLocalFrameClient().DispatchDidFailProvisionalLoad(error,
......
......@@ -102,7 +102,7 @@ void SubresourceFilter::ReportLoad(
kOtherMessageSource, kErrorMessageLevel,
GetErrorStringForDisallowedLoad(resource_url)));
}
// fall through
FALLTHROUGH;
case WebDocumentSubresourceFilter::kWouldDisallow:
// TODO(csharrison): Consider posting a task to the main thread from
// 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