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

Issue 2373933003: [Offline pages] Updating RequestQueue::RemoveRequests to use a TaskQueue (Closed)

Created:
4 years, 2 months ago by fgorski
Modified:
4 years, 2 months ago
CC:
chromium-reviews, romax+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Updating RequestQueue::RemoveRequests to use a TaskQueue * Switching the interface of RequestQueue/RequestStore::RemoveRequests * Converting implementation to Task based: RemoveRequestsTask with tests. * Removing most of old callbacks and typedefs BUG=645522, 651238 Committed: https://crrev.com/e1608da81a4ab410f761786df0b6113afa5ce0cd Cr-Commit-Position: refs/heads/master@{#423448}

Patch Set 1 #

Patch Set 2 : Rebasing #

Total comments: 11

Patch Set 3 : Fixing compilation issue and rebasing #

Patch Set 4 : Addressing feedback from petewil #

Total comments: 1

Patch Set 5 : Removing extra update #

Total comments: 4

Patch Set 6 : Addressing final feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+337 lines, -306 lines) Patch
M chrome/browser/android/offline_pages/downloads/offline_page_download_bridge.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/offline_pages/offline_page_bridge.cc View 1 2 1 chunk +20 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.cc View 1 2 2 chunks +3 lines, -5 lines 0 comments Download
M components/offline_pages/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
M components/offline_pages/background/BUILD.gn View 2 chunks +3 lines, -0 lines 0 comments Download
M components/offline_pages/background/change_requests_state_task_unittest.cc View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
A components/offline_pages/background/remove_requests_task.h View 1 2 1 chunk +53 lines, -0 lines 0 comments Download
A components/offline_pages/background/remove_requests_task.cc View 1 2 1 chunk +52 lines, -0 lines 0 comments Download
A + components/offline_pages/background/remove_requests_task_unittest.cc View 1 2 3 8 chunks +41 lines, -46 lines 0 comments Download
M components/offline_pages/background/request_coordinator.h View 1 2 4 chunks +12 lines, -15 lines 0 comments Download
M components/offline_pages/background/request_coordinator.cc View 1 2 3 4 2 chunks +6 lines, -12 lines 0 comments Download
M components/offline_pages/background/request_coordinator_unittest.cc View 1 2 4 chunks +4 lines, -6 lines 0 comments Download
M components/offline_pages/background/request_picker.h View 1 chunk +1 line, -3 lines 0 comments Download
M components/offline_pages/background/request_picker.cc View 1 chunk +6 lines, -8 lines 0 comments Download
M components/offline_pages/background/request_queue.h View 1 2 3 3 chunks +1 line, -17 lines 0 comments Download
M components/offline_pages/background/request_queue.cc View 1 3 chunks +5 lines, -10 lines 0 comments Download
M components/offline_pages/background/request_queue_in_memory_store.h View 1 2 3 1 chunk +1 line, -5 lines 0 comments Download
M components/offline_pages/background/request_queue_in_memory_store.cc View 1 2 3 1 chunk +10 lines, -14 lines 0 comments Download
M components/offline_pages/background/request_queue_store.h View 1 2 3 2 chunks +1 line, -5 lines 0 comments Download
M components/offline_pages/background/request_queue_store_sql.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M components/offline_pages/background/request_queue_store_sql.cc View 1 2 3 4 chunks +45 lines, -68 lines 0 comments Download
M components/offline_pages/background/request_queue_store_unittest.cc View 1 2 3 6 chunks +29 lines, -42 lines 0 comments Download
M components/offline_pages/background/request_queue_unittest.cc View 8 chunks +29 lines, -38 lines 0 comments Download
M components/offline_pages/offline_store_types.h View 3 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 33 (21 generated)
fgorski
PTAL
4 years, 2 months ago (2016-09-28 22:46:14 UTC) #4
Pete Williamson
https://codereview.chromium.org/2373933003/diff/20001/components/offline_pages/background/remove_requests_task.cc File components/offline_pages/background/remove_requests_task.cc (right): https://codereview.chromium.org/2373933003/diff/20001/components/offline_pages/background/remove_requests_task.cc#newcode14 components/offline_pages/background/remove_requests_task.cc:14: const RequestQueueStore::UpdateCallback& callback) Let's apply the renames from the ...
4 years, 2 months ago (2016-09-30 18:03:54 UTC) #8
fgorski
PTAL https://codereview.chromium.org/2373933003/diff/20001/components/offline_pages/background/remove_requests_task.cc File components/offline_pages/background/remove_requests_task.cc (right): https://codereview.chromium.org/2373933003/diff/20001/components/offline_pages/background/remove_requests_task.cc#newcode14 components/offline_pages/background/remove_requests_task.cc:14: const RequestQueueStore::UpdateCallback& callback) On 2016/09/30 18:03:53, Pete Williamson ...
4 years, 2 months ago (2016-10-04 17:18:24 UTC) #15
Pete Williamson
mostly looks good, one remaining issue... https://codereview.chromium.org/2373933003/diff/60001/components/offline_pages/background/request_coordinator.cc File components/offline_pages/background/request_coordinator.cc (right): https://codereview.chromium.org/2373933003/diff/60001/components/offline_pages/background/request_coordinator.cc#newcode471 components/offline_pages/background/request_coordinator.cc:471: queue_->UpdateRequest( Why two ...
4 years, 2 months ago (2016-10-05 20:17:26 UTC) #16
Pete Williamson
lgtm after we talked in person about the duplicate call to update the request state.
4 years, 2 months ago (2016-10-05 20:39:20 UTC) #17
fgorski
Michael, PTAL at the web ui stuff. Thanks
4 years, 2 months ago (2016-10-05 20:43:44 UTC) #19
michaelpg
webui stuff lgtm pending comment spelling and IWYU suggestion https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h File chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h (right): https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h#newcode75 chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h:75: ...
4 years, 2 months ago (2016-10-06 01:57:35 UTC) #24
fgorski
Comments addressed. Thanks for review. https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h File chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h (right): https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h#newcode75 chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h:75: const offline_pages::MultipleItemStatuses& results); On ...
4 years, 2 months ago (2016-10-06 04:35:28 UTC) #25
fgorski
Comments addressed. Thanks for review. https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h File chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h (right): https://codereview.chromium.org/2373933003/diff/80001/chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h#newcode75 chrome/browser/ui/webui/offline/offline_internals_ui_message_handler.h:75: const offline_pages::MultipleItemStatuses& results); On ...
4 years, 2 months ago (2016-10-06 04:35:28 UTC) #26
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/2373933003/100001
4 years, 2 months ago (2016-10-06 04:36:00 UTC) #29
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-06 06:21:35 UTC) #31
commit-bot: I haz the power
4 years, 2 months ago (2016-10-06 06:23:50 UTC) #33
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/e1608da81a4ab410f761786df0b6113afa5ce0cd
Cr-Commit-Position: refs/heads/master@{#423448}

Powered by Google App Engine
This is Rietveld 408576698