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

Unified Diff: components/cronet/android/url_request_adapter.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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: components/cronet/android/url_request_adapter.cc
diff --git a/components/cronet/android/url_request_adapter.cc b/components/cronet/android/url_request_adapter.cc
index 43fb8f416b98e2d85b79c82ffff70d2d1ced11ec..3195c27ebaabe4b4fe1871331755c5d394a5dcc1 100644
--- a/components/cronet/android/url_request_adapter.cc
+++ b/components/cronet/android/url_request_adapter.cc
@@ -86,11 +86,8 @@ void URLRequestAdapter::AppendChunk(const char* bytes, int bytes_len,
memcpy(buf.get(), bytes, bytes_len);
context_->PostTaskToNetworkThread(
FROM_HERE,
- base::Bind(&URLRequestAdapter::OnAppendChunk,
- base::Unretained(this),
- Passed(buf.Pass()),
- bytes_len,
- is_last_chunk));
+ base::Bind(&URLRequestAdapter::OnAppendChunk, base::Unretained(this),
+ base::Passed(&buf), bytes_len, is_last_chunk));
}
std::string URLRequestAdapter::GetHeader(const std::string& name) const {
« no previous file with comments | « components/cronet/android/cronet_url_request_context_adapter.cc ('k') | components/gcm_driver/fake_gcm_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698