Descriptionsettings: Make DeviceOAuth2TokenServiceFactory::Get() async
This is in preparation for fixing nasty D-Bus method call issues in
DeviceOAuth2TokenService.
In crrev.com/228189, we had to add horrible hacks to workaround an urgent
P1 issue, which needed to be merged to M31 branch immediately.
The root cause of this problem is the fact that DeviceOAuth2TokenService
issues D-Bus method calls, which should be asynchronous, from places
where doing it asynchronously is difficult (in particular, making
GetRefreshToken() asynchronous is very difficult: crbug.com/309952).
A simpler solution for this problem is to get the system salt before
creating DeviceOAuth2TokenService, hence Get() should be asynchronous.
BUG=309959, 306547
TEST=none
R=courage@chromium.org, hashimoto@chromium.org, pastarmovj@chromium.org, pneubeck@chromium.org, xiyuan@chromium.org
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=230624
Patch Set 1 : #
Total comments: 40
Patch Set 2 : rebase #Patch Set 3 : address comments #
Total comments: 6
Patch Set 4 : rebase #Patch Set 5 : address comments #Messages
Total messages: 16 (0 generated)
|