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

Issue 2534673002: [Offline pages] Create offliner that uses background loader (Closed)

Created:
4 years ago by chili
Modified:
4 years 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] Create offliner that uses background loader BUG=665242 Committed: https://crrev.com/1ae92b9ebd0682f1c2abd530a6d191c779d9ce71 Cr-Commit-Position: refs/heads/master@{#439580}

Patch Set 1 #

Patch Set 2 : test update #

Total comments: 12

Patch Set 3 : fooooo #

Patch Set 4 : test and format #

Total comments: 47

Patch Set 5 : Code review responses #

Total comments: 4

Patch Set 6 : bleh it works now #

Messages

Total messages: 52 (26 generated)
chili
Notice that I have not finished the tests yet. Not fully happy with the test ...
4 years ago (2016-11-30 04:46:06 UTC) #2
dougarnett
Looks like you have added tests - are those ready for review now then? https://codereview.chromium.org/2534673002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc ...
4 years ago (2016-12-01 00:10:10 UTC) #3
chili
The test file you see is more of a setup (and it compiles! :D) There ...
4 years ago (2016-12-01 02:01:26 UTC) #4
Pete Williamson
I haven't looked at the unit tests yet, but here is some preliminary feedback. https://codereview.chromium.org/2534673002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc ...
4 years ago (2016-12-01 02:03:38 UTC) #5
dougarnett
Looking good, lemme know when you add tests https://codereview.chromium.org/2534673002/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/2534673002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode109 chrome/browser/android/offline_pages/background_loader_offliner.cc:109: loader_.reset( ...
4 years ago (2016-12-02 19:12:32 UTC) #6
chili
Tests are ready to take a look at. Thanks for taking a look! https://codereview.chromium.org/2534673002/diff/20001/chrome/browser/android/offline_pages/background_loader_offliner.cc File ...
4 years ago (2016-12-09 22:45:57 UTC) #15
Pete Williamson
Your fixes to my previous comments all look good. A few new comments on the ...
4 years ago (2016-12-10 01:52:54 UTC) #17
fgorski
drive by https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode20 chrome/browser/android/offline_pages/background_loader_offliner.cc:20: : WebContentsObserver(), Is this line needed? https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode22 ...
4 years ago (2016-12-12 17:59:16 UTC) #21
dougarnett
https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode63 chrome/browser/android/offline_pages/background_loader_offliner.cc:63: pending_request_.reset(nullptr); On 2016/12/12 17:59:16, fgorski wrote: > will using ...
4 years ago (2016-12-12 19:24:18 UTC) #22
dougarnett
https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc File chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc (right): https://codereview.chromium.org/2534673002/diff/80001/chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc#newcode187 chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc:187: // Save still in progress because does not support ...
4 years ago (2016-12-12 19:33:28 UTC) #23
chili
I broke something over the last day regarding cancel and resetting. It appears that cancel() ...
4 years ago (2016-12-15 10:34:40 UTC) #24
dewittj
did you forget to upload your most recent patchset?
4 years ago (2016-12-15 17:47:40 UTC) #25
chili
On 2016/12/15 17:47:40, dewittj wrote: > did you forget to upload your most recent patchset? ...
4 years ago (2016-12-15 18:09:03 UTC) #26
Pete Williamson
OK, my comments have been addressed, lgtm when you get it working.
4 years ago (2016-12-15 18:15:49 UTC) #27
dougarnett
lgtm
4 years ago (2016-12-15 19:15:37 UTC) #28
fgorski
lgtm, but let's talk about save_state_ in implementation. https://codereview.chromium.org/2534673002/diff/100001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2534673002/diff/100001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode66 chrome/browser/android/offline_pages/background_loader_offliner.cc:66: if ...
4 years ago (2016-12-15 21:59:07 UTC) #29
fgorski
https://codereview.chromium.org/2534673002/diff/100001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2534673002/diff/100001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode65 chrome/browser/android/offline_pages/background_loader_offliner.cc:65: if (pending_request_) { how about? if (!pending_request_) return; if ...
4 years ago (2016-12-15 22:01:13 UTC) #30
chili
By assuming that calling StartLoading (via web_contents()->TestSetIsLoading(true)) will eventually trigger DidStopLoading, all the tests are ...
4 years ago (2016-12-15 23:50:36 UTC) #31
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/2534673002/120001
4 years ago (2016-12-16 18:31:13 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/327965)
4 years ago (2016-12-16 18:50:05 UTC) #40
chili
+sky for deps on content/public/test, used by background_loader_contents_stub for WebContentsTester
4 years ago (2016-12-16 19:29:10 UTC) #42
sky
sky->jam
4 years ago (2016-12-16 20:33:25 UTC) #44
jam
On 2016/12/16 20:33:25, sky (OOO) wrote: > sky->jam lgtm
4 years ago (2016-12-19 18:41:54 UTC) #45
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/2534673002/120001
4 years ago (2016-12-19 19:06:03 UTC) #47
commit-bot: I haz the power
Committed patchset #6 (id:120001)
4 years ago (2016-12-19 21:54:03 UTC) #50
commit-bot: I haz the power
4 years ago (2016-12-19 21:56:26 UTC) #52
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/1ae92b9ebd0682f1c2abd530a6d191c779d9ce71
Cr-Commit-Position: refs/heads/master@{#439580}

Powered by Google App Engine
This is Rietveld 408576698