DescriptionAdd OAuth2 authentication for speech recognition requests from the launcher, when audio-history is opted-into.
Audio history allows a user to see the speech recognition result at https://history.google.com/history/audio. This change will attach an auth (OAuth2) token to the recognition request, which is used to associate the request with the user. This only happens when the user opts-in to audio history, and only on speech recognition from the app launcher.
This change adds a helper class that handles retrieving and refreshing the auth token, and plumbs that token into the speech recognition request.
BUG=397019
Committed: https://crrev.com/7e93806b149d4378f5032bcd3a6c65b4e64f7774
Cr-Commit-Position: refs/heads/master@{#308270}
Patch Set 1 #Patch Set 2 : Compile fix. #Patch Set 3 : Another compile fix. #Patch Set 4 : Oops. Don't use an initializer list. #Patch Set 5 : Prune ChromeOS dependencies from test. #Patch Set 6 : Fix unit test on Chrome. #
Total comments: 15
Patch Set 7 : Review comments. #
Total comments: 2
Patch Set 8 : Inject clock for testing. #
Total comments: 4
Patch Set 9 : URL escape auth parameters. #Patch Set 10 : Rebase. #Messages
Total messages: 30 (7 generated)
|