Chromium Code Reviews
Description[Sync] Ensure all values of SyncProtocolErrorType are handled in ShouldRequestEarlyExit
The issue is that in ShouldRequestEarlyExit (sync_scheduler_impl.cc)
switch statement doesn't explicitly handle all SyncProtocolErrorType
values and therefore they are handled by default: and cause NOTREACHED().
In the current code two values that are not handled are
NON_RETRIABLE_ERROR and PARTIAL_FAILURE.
The change is to remove default handler from switch so that adding new
error type without handling it explicitly would cause compiler error.
In addition I removed NON_RETRIABLE_ERROR as it seems to be not used.
BUG=565102
R=zea@chromium.org
Committed: https://crrev.com/ae33a61d1c888132fdd6bf4fa9d47074d06edb87
Cr-Commit-Position: refs/heads/master@{#363283}
Patch Set 1 #Patch Set 2 : Fix windows build #
Messages
Total messages: 16 (7 generated)
|
|||||||||||||||||||||||||||||||||||||