Commit 7bc5dcbd authored by Nico Weber's avatar Nico Weber Committed by Commit Bot

Prepare ios code for building with -Wimplicit-fallthrough.

No behavior change.

Actually turning on the warning is blocked on an issue in protobuf
(see crbug.com/809157), so this will happen in a future CL.

Bug: 177475
Cq-Include-Trybots: master.tryserver.chromium.mac:ios-simulator-cronet;master.tryserver.chromium.mac:ios-simulator-full-configs
Change-Id: If4a2e661257a77298bacf589b7bdf02e0e54374d
Reviewed-on: https://chromium-review.googlesource.com/902066Reviewed-by: default avatarDavid Roger <droger@chromium.org>
Reviewed-by: default avatarLambros Lambrou <lambroslambrou@chromium.org>
Commit-Queue: Nico Weber <thakis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#534862}
parent d6b10e24
...@@ -115,6 +115,7 @@ typedef NS_ENUM(NSInteger, ItemType) { ...@@ -115,6 +115,7 @@ typedef NS_ENUM(NSInteger, ItemType) {
PaymentsTextCell* messageCell = PaymentsTextCell* messageCell =
base::mac::ObjCCastStrict<PaymentsTextCell>(cell); base::mac::ObjCCastStrict<PaymentsTextCell>(cell);
messageCell.textLabel.textColor = [[MDCPalette greyPalette] tint600]; messageCell.textLabel.textColor = [[MDCPalette greyPalette] tint600];
break;
} }
default: default:
break; break;
......
...@@ -630,6 +630,7 @@ void HttpProtocolHandlerCore::SetLoadFlags() { ...@@ -630,6 +630,7 @@ void HttpProtocolHandlerCore::SetLoadFlags() {
switch ([request_ cachePolicy]) { switch ([request_ cachePolicy]) {
case NSURLRequestReloadIgnoringLocalAndRemoteCacheData: case NSURLRequestReloadIgnoringLocalAndRemoteCacheData:
load_flags |= LOAD_BYPASS_CACHE; load_flags |= LOAD_BYPASS_CACHE;
FALLTHROUGH;
case NSURLRequestReloadIgnoringLocalCacheData: case NSURLRequestReloadIgnoringLocalCacheData:
load_flags |= LOAD_DISABLE_CACHE; load_flags |= LOAD_DISABLE_CACHE;
break; break;
......
...@@ -148,7 +148,7 @@ void AudioPlayerIos::StartOnAudioThread() { ...@@ -148,7 +148,7 @@ void AudioPlayerIos::StartOnAudioThread() {
GenerateOutputQueue((void*)this); GenerateOutputQueue((void*)this);
GenerateOutputBuffers(audio_frame_supplier_->bytes_per_frame()); GenerateOutputBuffers(audio_frame_supplier_->bytes_per_frame());
state_ = STOPPED; state_ = STOPPED;
// Fall-through intended. FALLTHROUGH;
case STOPPED: case STOPPED:
PrimeQueue(); PrimeQueue();
return; return;
......
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