add auth_coordinator for glic

- Check for persistent token error state when launching
  glic, and trigger manual sign-in page.
- Track changes to persistent error state or token refresh,
  and remember whether we need to do cookie sync next time.
- Do cookie sync at init time, and give up if it fails.
- Do cookie sync again, if necessary, at show time.
- Notify the WebUI when the window will be shown, so that
  it will reload the page if there is an error.

Bug: 393592028, 391378260, 394086372
Change-Id: I9a5e1f96a60d30d0b5a57d21b2a1cded399ad223
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6220626
Commit-Queue: Dan H <harringtond@chromium.org>
Reviewed-by: Carlos Knippschild <carlosk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1415778}
NOKEYCHECK=True
GitOrigin-RevId: 977bc7a7c4c3bb097783cddb5ab49bed62782b7a
2 files changed
tree: 273c33ba5110ee421c8108f9426540cc73a58099
  1. build/
  2. chrome/
  3. components/
  4. google_internal/
  5. intents/
  6. net/
  7. public/
  8. testing/
  9. third_party/
  10. tools/
  11. web/
  12. web_view/
  13. .swift-format
  14. BUILD.gn
  15. COMMON_METADATA
  16. DEPS
  17. DIR_METADATA
  18. features.gni
  19. OWNERS
  20. PRESUBMIT.py
  21. PRESUBMIT_test.py
  22. README.md
README.md

This directory holds code related to Chrome for iOS. See this document for a description of the structure underneath this directory.