| Index: content/browser/speech/google_streaming_remote_engine.cc
|
| diff --git a/content/browser/speech/google_streaming_remote_engine.cc b/content/browser/speech/google_streaming_remote_engine.cc
|
| index 7fea0fa90a60f56110be95d04a70975986225090..e52430c428cd932d5b23caa6f1a939d021e9b3bf 100644
|
| --- a/content/browser/speech/google_streaming_remote_engine.cc
|
| +++ b/content/browser/speech/google_streaming_remote_engine.cc
|
| @@ -4,6 +4,7 @@
|
|
|
| #include "content/browser/speech/google_streaming_remote_engine.h"
|
|
|
| +#include <algorithm>
|
| #include <vector>
|
|
|
| #include "base/bind.h"
|
| @@ -342,7 +343,10 @@ GoogleStreamingRemoteEngine::ConnectBothStreams(const FSMEventArgs&) {
|
| upstream_args.push_back("continuous");
|
| if (config_.interim_results)
|
| upstream_args.push_back("interim");
|
| -
|
| + if (!config_.auth_token.empty() && !config_.auth_scope.empty()) {
|
| + upstream_args.push_back("authScope=" + config_.auth_scope);
|
| + upstream_args.push_back("authToken=" + config_.auth_token);
|
| + }
|
| GURL upstream_url(std::string(kWebServiceBaseUrl) +
|
| std::string(kUpstreamUrl) +
|
| JoinString(upstream_args, '&'));
|
|
|