Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PlatformKeysService] Document the thread on which callbacks will run
PlatformKeysService expects users to call its public functions on the UI thread and it saves the task runner on which the NSS operation runs (which should be always the UI thread task runner in that case) and then calls the callback on that task runner. This CL documents that behavior so that it is easier for the service users to know on what thread their callback will be called. In a future CL, we may simplify the code by always running the callbacks on the UI thread task runner using content::GetUIThreadTaskRunner without saving the origin task runner. Bug: 1205375 Change-Id: I34914e6254409a65f269e76abf892f4e6ae114cb Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2917017 Reviewed-by: Maksim Ivanov <emaxx@chromium.org> Commit-Queue: Maksim Ivanov <emaxx@chromium.org> Cr-Commit-Position: refs/heads/master@{#887799}
- Loading branch information