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

Issue 2599873002: Allow URLFetcher to be used from sequenced tasks. (Closed)

Created:
4 years ago by fdoray
Modified:
3 years, 11 months ago
Reviewers:
agl, gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow URLFetcher to be used from sequenced tasks. Before this CL, URLFetcher could only be instantiated from a single-threaded task. The response was dispatched on the origin thread. With this CL, URLFetcher can also be instantiated from a sequenced task. The response is dispatched on the origin sequence. Since SequencedTaskRunnerHandle behaves the same way as ThreadTaskRunnerHandle when used from a single-threaded task, this CL does not affect the behavior of existing URLFetcher call sites (they are necessarily in single-threaded tasks because base::ThreadTaskRunnerHandle::Get() crashes when called from a non-single-threaded task). BUG=675631 Review-Url: https://codereview.chromium.org/2599873002 Cr-Commit-Position: refs/heads/master@{#443224} Committed: https://chromium.googlesource.com/chromium/src/+/dc3ecbb07646f4fc719f49b853ea1ef2c3a10865

Patch Set 1 #

Total comments: 2

Patch Set 2 : remove get() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+58 lines, -28 lines) Patch
M net/url_request/url_fetcher.h View 1 chunk +2 lines, -2 lines 0 comments Download
M net/url_request/url_fetcher_core.h View 3 chunks +6 lines, -5 lines 0 comments Download
M net/url_request/url_fetcher_core.cc View 1 13 chunks +21 lines, -21 lines 0 comments Download
M net/url_request/url_fetcher_impl_unittest.cc View 2 chunks +29 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (14 generated)
fdoray
PTAL
3 years, 12 months ago (2016-12-23 12:39:37 UTC) #8
fdoray
+gavinp@ PTAL (no reply from agl@ after 2 weeks)
3 years, 11 months ago (2017-01-06 18:16:07 UTC) #10
gavinp
lgtm. Sorry for being slow myself...! https://codereview.chromium.org/2599873002/diff/1/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/2599873002/diff/1/net/url_request/url_fetcher_core.cc#newcode127 net/url_request/url_fetcher_core.cc:127: if (delegate_task_runner_.get()) // ...
3 years, 11 months ago (2017-01-11 18:38:42 UTC) #11
fdoray
https://codereview.chromium.org/2599873002/diff/1/net/url_request/url_fetcher_core.cc File net/url_request/url_fetcher_core.cc (right): https://codereview.chromium.org/2599873002/diff/1/net/url_request/url_fetcher_core.cc#newcode127 net/url_request/url_fetcher_core.cc:127: if (delegate_task_runner_.get()) // May be NULL in tests. On ...
3 years, 11 months ago (2017-01-11 18:44:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599873002/20001
3 years, 11 months ago (2017-01-11 18:44:37 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: android_n5x_swarming_rel on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_n5x_swarming_rel/builds/98340)
3 years, 11 months ago (2017-01-11 19:53:49 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2599873002/20001
3 years, 11 months ago (2017-01-12 14:07:36 UTC) #19
commit-bot: I haz the power
3 years, 11 months ago (2017-01-12 14:36:02 UTC) #22
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/dc3ecbb07646f4fc719f49b853ea...

Powered by Google App Engine
This is Rietveld 408576698