sync_ui_util: Deduplicate unrecoverable error handing code
Previously, the code to detect unrecoverable errors and emit a corresponding message was duplicated in GetStatusLabelsImpl(). This CL pulls it out of the if/else and thus combines the two. One behavior difference is when an unrecoverable error happens while the initial Sync setup is in progress: Previously that was treated as "setup in progress", now it's treated as an unrecoverable error, which seems preferable. Bug: 911153 Change-Id: I16275d65a9c6c2be97754d948c5ebddfd9b492ad Reviewed-on: https://chromium-review.googlesource.com/c/1478810 Commit-Queue: Marc Treib <treib@chromium.org> Reviewed-by:Mohamed Amir Yosef <mamir@chromium.org> Cr-Commit-Position: refs/heads/master@{#634635}
Showing
Please register or sign in to comment