diff options
author | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 13:57:05 +0000 |
---|---|---|
committer | satish@chromium.org <satish@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-20 13:57:05 +0000 |
commit | ca97f30c1c6e282f62880c6b1d5e165b9ece716f (patch) | |
tree | 75f7f5abe47a49e5c603eacbe7abf993d232aad2 /chrome/browser/speech/speech_recognition_request_unittest.cc | |
parent | c33ec4af81ba1d13ec18eb7b0e542c05a2c9d4b0 (diff) | |
download | chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.zip chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.tar.gz chromium_src-ca97f30c1c6e282f62880c6b1d5e165b9ece716f.tar.bz2 |
If user had consented for metrics reporting, send speech input request origin to the server.
This is the chromium side of the webkit patch https://bugs.webkit.org/show_bug.cgi?id=52718.
Suggested reviewer split:
wtc@ - the 2 url_fetcher.* files
hans@ - rest of the files
I needed to add a URLFetcher::set_referrer() method to send the origin url in the Referer header.
Also I had to create a new IPC params struct for startRecognition since the
number of parameters exceed what is provided by the macros. And in the process I also moved
the speech input IPC messages to their own source files.
BUG=none
TEST=No change in functionality except additional debug info sent to server.
Review URL: http://codereview.chromium.org/6308009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@71949 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/speech/speech_recognition_request_unittest.cc')
-rw-r--r-- | chrome/browser/speech/speech_recognition_request_unittest.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome/browser/speech/speech_recognition_request_unittest.cc b/chrome/browser/speech/speech_recognition_request_unittest.cc index cf3f60b..bd2a26e 100644 --- a/chrome/browser/speech/speech_recognition_request_unittest.cc +++ b/chrome/browser/speech/speech_recognition_request_unittest.cc @@ -47,7 +47,7 @@ void SpeechRecognitionRequestTest::CreateAndTestRequest( bool success, const std::string& http_response) { SpeechRecognitionRequest request(NULL, this); request.Send(std::string(), std::string(), std::string(), std::string(), - std::string()); + std::string(), std::string()); TestURLFetcher* fetcher = url_fetcher_factory_.GetFetcherByID(0); ASSERT_TRUE(fetcher); net::URLRequestStatus status; |