GCDApiFlow takes in an O2TS, which GCDApiFlowImpl uses to make access token requests. I verified that it is ProfileOAuth2TokenService that is supplied: the only creation flow is via GCDApiFlow, which is only invoked here:
https://cs.chromium.org/chromium/src/chrome/browser/ui/webui/local_discovery/local_discovery_ui_handler.cc?type=cs&q=GCDApiFlow::Create&l=523
The above should be convertible to PrimaryAccountAccessTokenFetcher I think.
PrivetNotifications checks whether user is signed in on ChromeOS in order to determine whether to start. This should be straightforward to convert to IdentityManager.
Comment 1 by blundell@chromium.org
, Feb 6 2018Components: Internals>Services>Identity
Status: Available (was: Untriaged)