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

Issue 2822023002: [Offline pages]: Move logic for whether to consider the DocumentAvailableInMainFrame signal to the … (Closed)

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

Description

[Offline pages]: Move logic for whether to consider the DocumentAvailableInMainFrame signal to the snapshot controller Changes include: -- moving all timing parameters (how long to wait before snapshotting) to the snapshot controller -- introducing 2 new factory methods for obtaining a snapshot controller -- more explicit ownership and transfer of the snapshot controller BUG=712473 Review-Url: https://codereview.chromium.org/2822023002 Cr-Commit-Position: refs/heads/master@{#468765} Committed: https://chromium.googlesource.com/chromium/src/+/5e17a9358f03488e71cba7c4b6786afba95fed6e

Patch Set 1 #

Patch Set 2 : some fix #

Total comments: 15

Patch Set 3 : code review changes #

Total comments: 12

Patch Set 4 : strengthen ownership #

Patch Set 5 : update test #

Patch Set 6 : test fix: replace snapshot controller at the right place #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -54 lines) Patch
M chrome/browser/android/offline_pages/background_loader_offliner.h View 1 2 3 4 5 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner.cc View 1 2 3 4 5 4 chunks +5 lines, -8 lines 0 comments Download
M chrome/browser/android/offline_pages/background_loader_offliner_unittest.cc View 1 2 3 4 5 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/android/offline_pages/prerendering_loader.cc View 1 2 3 3 chunks +6 lines, -22 lines 0 comments Download
M chrome/browser/android/offline_pages/recent_tab_helper.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M components/offline_pages/core/snapshot_controller.h View 1 2 3 2 chunks +12 lines, -2 lines 0 comments Download
M components/offline_pages/core/snapshot_controller.cc View 1 2 3 4 chunks +38 lines, -15 lines 0 comments Download
M components/offline_pages/core/snapshot_controller_unittest.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 52 (37 generated)
chili
3 years, 8 months ago (2017-04-19 06:41:31 UTC) #11
fgorski
This is hard to review without context. Please add a bug and relevant explanation of ...
3 years, 8 months ago (2017-04-19 15:42:50 UTC) #12
romax
mostly looks good, please attach it to a bug :) https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc (left): https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/prerendering_loader.cc#oldcode20 ...
3 years, 8 months ago (2017-04-19 17:40:30 UTC) #13
chili
Forgot to attach bug. Added more details in the bug for rationale. https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/prerendering_loader.cc File chrome/browser/android/offline_pages/prerendering_loader.cc ...
3 years, 8 months ago (2017-04-19 21:10:14 UTC) #15
carlosk
LGTM with one change needed and a nit. I agree with the choice of not ...
3 years, 8 months ago (2017-04-19 23:16:58 UTC) #16
fgorski
https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/background_loader_offliner.cc File chrome/browser/android/offline_pages/background_loader_offliner.cc (right): https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/background_loader_offliner.cc#newcode174 chrome/browser/android/offline_pages/background_loader_offliner.cc:174: base::ThreadTaskRunnerHandle::Get(), this, kOfflineDomContentLoadedMs, Since this is the only place ...
3 years, 8 months ago (2017-04-20 16:39:06 UTC) #17
chili
Moved all the constants over to the snapshot controller, per filip's suggestion. PTAL https://codereview.chromium.org/2822023002/diff/40001/chrome/browser/android/offline_pages/background_loader_offliner.cc File ...
3 years, 8 months ago (2017-04-21 00:12:54 UTC) #18
carlosk
Still LGTM and indeed the Create* methods do make the API look clearer. https://codereview.chromium.org/2822023002/diff/40001/components/offline_pages/core/snapshot_controller.h File ...
3 years, 8 months ago (2017-04-21 01:10:58 UTC) #19
fgorski
Mostly looks good. My concerns are mostly around stressing the ownership model here. https://codereview.chromium.org/2822023002/diff/60001/chrome/browser/android/offline_pages/background_loader_offliner.cc File ...
3 years, 8 months ago (2017-04-21 16:05:11 UTC) #20
chili
Incorporated the changes. I've mostly gut-feeling understanding of when to use std::move, so please double-check ...
3 years, 8 months ago (2017-04-24 20:34:14 UTC) #21
fgorski
lgtm. I think this patch is great! One more nit though. Please edit the description ...
3 years, 8 months ago (2017-04-24 20:56:55 UTC) #22
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/2822023002/80001
3 years, 7 months ago (2017-04-27 22:49:49 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/257112) android_clang_dbg_recipe on master.tryserver.chromium.android (JOB_FAILED, ...
3 years, 7 months ago (2017-04-28 01:37:15 UTC) #28
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/2822023002/160001
3 years, 7 months ago (2017-05-02 20:44:13 UTC) #49
commit-bot: I haz the power
3 years, 7 months ago (2017-05-02 20:49:10 UTC) #52
Message was sent while issue was closed.
Committed patchset #6 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/5e17a9358f03488e71cba7c4b678...

Powered by Google App Engine
This is Rietveld 408576698