DescriptionMinor cleanup of EnrollmentHandlerChromeOS.
Rename private methods for consistency: Start*() for something that invokes
an async operation and Handle*() for something that gets called back by such
an operation. That leaves On*() reserved for observers. Also update some
comments. Lastly, use the current state key from the parameter passed to
HandleStateKeysResult() instead of requesting it again from the broker (line
222).
EnrollmentHandlerChromeOS and EnrollmentScreen: Don't report metrics on
unreached code paths. Generally, remove some obsolete instances of
NOTREACHED() after switches over enums: The compiler ensures that all enum
values are covered, there's no need to complicate the code by checking the
same thing again.
BUG=none
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290841
Committed: https://crrev.com/5376cbf34cac7704894ab5d6955f15063df5ebda
Cr-Commit-Position: refs/heads/master@{#293640}
Patch Set 1 #
Total comments: 16
Patch Set 2 : Rebase. #Patch Set 3 : Address Joao's comments. #Patch Set 4 : More cleanup. #Patch Set 5 : Rebase. #Patch Set 6 : Remove additional obsolete NOTREACHED() calls. #Patch Set 7 : Use single space at end of sentence. #Patch Set 8 : Fix compilation for AMD64 Chromium OS. #
Messages
Total messages: 21 (1 generated)
|