Cleanup: Get rid of ProfileSyncService::waiting_for_auth()
Its semantics were a bit weird: It got set on initial sign-in (i.e. not during a Chrome restart), and cleared again once we updated the auth error state: Either to an error, if we failed to get an access token or got an error from the sync server, or to "no error", if we successfully connected to the sync server. It had only a single call site, which only used it to suppress auth errors while waiting_for_auth was true. However, according to the above, that's an impossible state: Sync can not be in an auth error state *before* being signed in, and the waiting_for_auth bit is cleared when actually entering an auth error state. Bug: 839834 Change-Id: Iefbf54a93ede54aabb2a244b3e429b5591bb9934 Reviewed-on: https://chromium-review.googlesource.com/1099162Reviewed-by:Mihai Sardarescu <msarda@chromium.org> Reviewed-by:
Mikel Astiz <mastiz@chromium.org> Commit-Queue: Marc Treib <treib@chromium.org> Cr-Commit-Position: refs/heads/master@{#567250}
Showing
Please register or sign in to comment