Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(988)

Unified Diff: content/browser/speech/google_streaming_remote_engine.cc

Issue 1117703002: Adjust URLFetcher::Create API so that object is returned as scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove unneeded Pass() calls Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 11c7ac74e6f311ed01c96c865be918d613d6b994..fc8c6d242548b4d03b9215826b8d279f57843ec8 100644
--- a/content/browser/speech/google_streaming_remote_engine.cc
+++ b/content/browser/speech/google_streaming_remote_engine.cc
@@ -322,9 +322,8 @@ GoogleStreamingRemoteEngine::ConnectBothStreams(const FSMEventArgs&) {
std::string(kDownstreamUrl) +
JoinString(downstream_args, '&'));
- downstream_fetcher_.reset(URLFetcher::Create(
- kDownstreamUrlFetcherIdForTesting, downstream_url, URLFetcher::GET,
- this));
+ downstream_fetcher_ = URLFetcher::Create(
+ kDownstreamUrlFetcherIdForTesting, downstream_url, URLFetcher::GET, this);
downstream_fetcher_->SetRequestContext(url_context_.get());
downstream_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SAVE_COOKIES |
net::LOAD_DO_NOT_SEND_COOKIES |
@@ -375,8 +374,8 @@ GoogleStreamingRemoteEngine::ConnectBothStreams(const FSMEventArgs&) {
std::string(kUpstreamUrl) +
JoinString(upstream_args, '&'));
- upstream_fetcher_.reset(URLFetcher::Create(
- kUpstreamUrlFetcherIdForTesting, upstream_url, URLFetcher::POST, this));
+ upstream_fetcher_ = URLFetcher::Create(kUpstreamUrlFetcherIdForTesting,
+ upstream_url, URLFetcher::POST, this);
if (use_framed_post_data_)
upstream_fetcher_->SetChunkedUpload("application/octet-stream");
else
« no previous file with comments | « content/browser/speech/google_one_shot_remote_engine.cc ('k') | content/shell/browser/shell_devtools_frontend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698