DescriptionImprove GCM enum switch type safety
Now that most/all of our compilers warn when enum values are omitted
from a switch statement with no default case, it's better to omit the
default case so that anyone adding new enum values gets compile
failures if they forget to update one of the switches.
Also converted two lists of == FOO || == BAR || == BAZ to switches
for the same reason.
And reordered a few switches to match the enums.
Should have no functional changes, except that GetConnectionResetReasonString can now stringify NEW_HEARTBEAT_INTERVAL (an enum value that had been omitted).
BUG=none
Review-Url: https://chromiumcodereview.appspot.com/2427633005
Cr-Commit-Position: refs/heads/master@{#426303}
(cherry picked from commit 133bfbad6055349368a955d16318c1997d39810b)
Committed: https://chromium.googlesource.com/chromium/src/+/f6af6a205a30cb5d3bc2f9682072c5df85b4660b
Patch Set 1 #Messages
Total messages: 2 (1 generated)
|