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

Issue 2781623009: Migrate part of the BackgroundFetchJobController to the UI thread (Closed)

Created:
3 years, 8 months ago by Peter Beverloo
Modified:
3 years, 8 months ago
Reviewers:
harkness
CC:
chromium-reviews, Peter Beverloo, darin-cc_chromium.org, jam, harkness+watch_chromium.org, awdf+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Migrate part of the BackgroundFetchJobController to the UI thread One of its responsibilities is to dispatch the requests with the download manager, which must only be used on the UI thread. We need to meet that requirement. This also hooks up Start() in the context to ensure layout tests also exercise this code path. BUG= Review-Url: https://codereview.chromium.org/2781623009 Cr-Commit-Position: refs/heads/master@{#460730} Committed: https://chromium.googlesource.com/chromium/src/+/765cc1c8a14a1c6dfdfdb4ffb2e9b68d4766944a

Patch Set 1 #

Total comments: 6

Patch Set 2 : Migrate part of the BackgroundFetchJobController to the UI thread #

Unified diffs Side-by-side diffs Delta from patch set Stats (+243 lines, -139 lines) Patch
M content/browser/background_fetch/background_fetch_context.h View 1 2 chunks +7 lines, -2 lines 0 comments Download
M content/browser/background_fetch/background_fetch_context.cc View 1 3 chunks +12 lines, -4 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.h View 1 4 chunks +23 lines, -29 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller.cc View 1 3 chunks +176 lines, -97 lines 0 comments Download
M content/browser/background_fetch/background_fetch_job_controller_unittest.cc View 1 4 chunks +25 lines, -7 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 10 (5 generated)
Peter Beverloo
+harkness for review
3 years, 8 months ago (2017-03-29 19:35:52 UTC) #2
harkness
LGTM https://codereview.chromium.org/2781623009/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2781623009/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc#newcode24 content/browser/background_fetch/background_fetch_job_controller.cc:24: class BackgroundFetchJobController::Core : public DownloadItem::Observer { I don't ...
3 years, 8 months ago (2017-03-29 22:31:10 UTC) #3
Peter Beverloo
Thanks! https://codereview.chromium.org/2781623009/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc File content/browser/background_fetch/background_fetch_job_controller.cc (right): https://codereview.chromium.org/2781623009/diff/1/content/browser/background_fetch/background_fetch_job_controller.cc#newcode24 content/browser/background_fetch/background_fetch_job_controller.cc:24: class BackgroundFetchJobController::Core : public DownloadItem::Observer { On 2017/03/29 ...
3 years, 8 months ago (2017-03-29 22:37:56 UTC) #4
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/2781623009/20001
3 years, 8 months ago (2017-03-30 11:08:47 UTC) #7
commit-bot: I haz the power
3 years, 8 months ago (2017-03-30 12:04:18 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/765cc1c8a14a1c6dfdfdb4ffb2e9...

Powered by Google App Engine
This is Rietveld 408576698