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

Issue 2836863002: [Offline pages] Removing active_request_ from request coordinator (Closed)

Created:
3 years, 8 months ago by fgorski
Modified:
3 years, 8 months ago
Reviewers:
Pete Williamson, chili
CC:
chromium-reviews, cbentzel+watch_chromium.org, romax+watch_chromium.org, tburkard+watch_chromium.org, fgorski+watch_chromium.org, dewittj+watch_chromium.org, petewil+watch_chromium.org, chili+watch_chromium.org, gavinp+prer_chromium.org, dimich+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Offline pages] Removing active_request_ from request coordinator This patch removes active_request_ from RequestCoordinator. Referring to it when updating state of the database was a source of error in the past. This is safe to do with a minor tweak to Offliner interface (mainly cancel callback), because it already keeps a copy of a pending request. It turns out that simply keeping an ID of the currently processed request is enough. This opens us to offlining multiple things in parallel in future, as we can keep a map of id to offliner. Relevant offliner implementations and tests are adjusted for this change. #fixit This bug is part of Paquete fixit effort. BUG=714262 R=chili@chromium.org,petewil@chromium.org Review-Url: https://codereview.chromium.org/2836863002 Cr-Commit-Position: refs/heads/master@{#467013} Committed: https://chromium.googlesource.com/chromium/src/+/3d9408b382d593aa59f01dc5cb9ae8f0bc564e1d

Patch Set 1 #

Patch Set 2 : Removing extra dcheck #

Total comments: 13

Patch Set 3 : Addressing code review feedback and fixing app status change bug #

Messages

Total messages: 24 (16 generated)
fgorski
PTAL
3 years, 8 months ago (2017-04-24 17:05:38 UTC) #7
Pete Williamson
https://codereview.chromium.org/2836863002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2836863002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode196 chrome/browser/android/offline_pages/background_loader_offliner.cc:196: if (!pending_request_) I know it shouldn't happen, but if ...
3 years, 8 months ago (2017-04-24 17:41:38 UTC) #9
chili
https://codereview.chromium.org/2836863002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2836863002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode465 chrome/browser/android/offline_pages/background_loader_offliner.cc:465: // TODO(chili, petewil): So where is the reset state ...
3 years, 8 months ago (2017-04-24 17:44:53 UTC) #10
fgorski
PTAL. Because I may have changed callback for cancel call, there might be some tests ...
3 years, 8 months ago (2017-04-24 21:40:58 UTC) #15
Pete Williamson
lgtm
3 years, 8 months ago (2017-04-24 23:40:45 UTC) #18
fgorski
Cathy is sick, but she expressed no concerns offline. I'll try to land this.
3 years, 8 months ago (2017-04-25 16:31:34 UTC) #19
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/2836863002/40001
3 years, 8 months ago (2017-04-25 16:32:48 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-25 16:36:48 UTC) #24
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/3d9408b382d593aa59f01dc5cb9a...

Powered by Google App Engine
This is Rietveld 408576698