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

Issue 1891103002: Stop fetching the next page if the first page has no content (Closed)

Created:
4 years, 8 months ago by wychen
Modified:
4 years, 8 months ago
Reviewers:
mdjones
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Stop fetching the next page if the first page has no content In DOM distiller, if the distilled content of the first page is empty, it's very likely that the page is not good for distillation, so fetching the next page doesn't make sense. BUG=602139 Committed: https://crrev.com/6d72911b0cb47f5519288325fc502470815b9e7a Cr-Commit-Position: refs/heads/master@{#387759}

Patch Set 1 #

Total comments: 2

Patch Set 2 : flip logic #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -111 lines) Patch
M components/dom_distiller/core/distiller.cc View 1 1 chunk +117 lines, -111 lines 0 comments Download
M components/dom_distiller/core/distiller_unittest.cc View 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (3 generated)
wychen
PTAL. The diff here is not very smart about changing indent level. "git diff -w" ...
4 years, 8 months ago (2016-04-15 00:38:10 UTC) #2
mdjones
https://codereview.chromium.org/1891103002/diff/1/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/1891103002/diff/1/components/dom_distiller/core/distiller.cc#newcode170 components/dom_distiller/core/distiller.cc:170: bool content_not_empty = false; Can we flip the name/logic ...
4 years, 8 months ago (2016-04-15 21:57:35 UTC) #3
wychen
https://codereview.chromium.org/1891103002/diff/1/components/dom_distiller/core/distiller.cc File components/dom_distiller/core/distiller.cc (right): https://codereview.chromium.org/1891103002/diff/1/components/dom_distiller/core/distiller.cc#newcode170 components/dom_distiller/core/distiller.cc:170: bool content_not_empty = false; On 2016/04/15 21:57:35, mdjones wrote: ...
4 years, 8 months ago (2016-04-15 22:02:10 UTC) #4
mdjones
lgtm
4 years, 8 months ago (2016-04-15 22:12:47 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1891103002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1891103002/20001
4 years, 8 months ago (2016-04-15 22:32:07 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 8 months ago (2016-04-16 00:09:24 UTC) #8
commit-bot: I haz the power
4 years, 8 months ago (2016-04-16 00:10:22 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6d72911b0cb47f5519288325fc502470815b9e7a
Cr-Commit-Position: refs/heads/master@{#387759}

Powered by Google App Engine
This is Rietveld 408576698