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

Unified Diff: net/url_request/url_request_simple_job.cc

Issue 2854243003: Use constexpr TaskTraits constructor in net. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « net/url_request/url_fetcher_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_simple_job.cc
diff --git a/net/url_request/url_request_simple_job.cc b/net/url_request/url_request_simple_job.cc
index 0e95ae6b9daa02af8fd19b0d8f2fd7e307bd7544..54be9d230c84071ed8c8b014b362e4f3cecf0711 100644
--- a/net/url_request/url_request_simple_job.cc
+++ b/net/url_request/url_request_simple_job.cc
@@ -73,8 +73,7 @@ int URLRequestSimpleJob::ReadRawData(IOBuffer* buf, int buf_size) {
// Do memory copy asynchronously on a thread that is not the network thread.
// See crbug.com/422489.
base::PostTaskWithTraitsAndReply(
- FROM_HERE, base::TaskTraits().WithShutdownBehavior(
- base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN),
+ FROM_HERE, {base::TaskShutdownBehavior::CONTINUE_ON_SHUTDOWN},
base::Bind(&CopyData, make_scoped_refptr(buf), buf_size, data_,
next_data_offset_),
base::Bind(&URLRequestSimpleJob::ReadRawDataComplete,
« no previous file with comments | « net/url_request/url_fetcher_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698