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

Issue 1130703003: Show template before distiller finishes (Closed)

Created:
5 years, 7 months ago by mdjones
Modified:
5 years, 6 months ago
CC:
chromium-reviews, darin-cc_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@ios-superclass
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show template before distiller finishes This change allows content to be shown on the page prior to the distillation of the first page of an article having completed. The template HTML and the loading animation will show while the distillation completes. BUG= Committed: https://crrev.com/efe2ac1d3e1650a1cec652566542ac492eafedb3 Cr-Commit-Position: refs/heads/master@{#331852}

Patch Set 1 #

Patch Set 2 : ios compile errors #

Patch Set 3 : Simplify iOS #

Patch Set 4 : Add and clean up existing tests #

Patch Set 5 : nits #

Total comments: 2

Patch Set 6 : Use original url in template #

Patch Set 7 : escaped char check #

Total comments: 2

Patch Set 8 : Rebase and add file to gypi #

Total comments: 10

Patch Set 9 : address comments #

Total comments: 2

Patch Set 10 : Renumber template placeholders #

Patch Set 11 : Remove unnecessary dependency #

Patch Set 12 : #

Patch Set 13 : Whitelist string for iOS #

Patch Set 14 : Add missing deps to gn #

Patch Set 15 : Fix mem leak and test for dynamic title #

Patch Set 16 : Better default direction #

Patch Set 17 : Fix flaky test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+502 lines, -208 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc View 1 2 3 4 5 6 7 8 1 chunk +58 lines, -0 lines 0 comments Download
M chrome/browser/dom_distiller/tab_utils_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 5 chunks +33 lines, -7 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/content/distiller_page_web_contents_browsertest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -36 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.cc View 1 2 3 4 5 7 chunks +21 lines, -32 lines 0 comments Download
M components/dom_distiller/core/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +4 lines, -0 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_request_view_base.h View 1 2 2 chunks +2 lines, -16 lines 0 comments Download
M components/dom_distiller/core/dom_distiller_request_view_base.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +15 lines, -21 lines 0 comments Download
A components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc View 1 2 3 4 5 6 1 chunk +239 lines, -0 lines 0 comments Download
M components/dom_distiller/core/html/dom_distiller_viewer.html View 1 2 3 4 5 6 7 8 9 5 chunks +7 lines, -5 lines 0 comments Download
M components/dom_distiller/core/javascript/dom_distiller_viewer.js View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +6 lines, -0 lines 0 comments Download
A components/dom_distiller/core/test_request_view_handle.h View 1 2 3 1 chunk +52 lines, -0 lines 0 comments Download
M components/dom_distiller/core/viewer.h View 1 2 3 4 5 6 7 8 3 chunks +7 lines, -6 lines 0 comments Download
M components/dom_distiller/core/viewer.cc View 1 2 3 4 5 6 7 8 9 5 chunks +26 lines, -33 lines 0 comments Download
M components/dom_distiller_strings.grdp View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M ios/chrome/browser/dom_distiller/distiller_viewer.h View 1 2 3 4 5 6 7 1 chunk +5 lines, -4 lines 0 comments Download
M ios/chrome/browser/dom_distiller/distiller_viewer.cc View 1 2 3 4 5 6 7 1 chunk +21 lines, -48 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
mdjones
This change does not include 'correctly' running javascript on iOS.
5 years, 7 months ago (2015-05-12 22:54:45 UTC) #2
wychen
https://codereview.chromium.org/1130703003/diff/80001/components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc File components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc (right): https://codereview.chromium.org/1130703003/diff/80001/components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc#newcode33 components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc:33: TEST_F(DomDistillerRequestViewTest, TestTitleNeverEmpty) { Maybe also check special char to ...
5 years, 7 months ago (2015-05-15 01:36:14 UTC) #4
mdjones
https://codereview.chromium.org/1130703003/diff/80001/components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc File components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc (right): https://codereview.chromium.org/1130703003/diff/80001/components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc#newcode33 components/dom_distiller/core/dom_distiller_request_view_base_unittest.cc:33: TEST_F(DomDistillerRequestViewTest, TestTitleNeverEmpty) { On 2015/05/15 01:36:14, wychen wrote: > ...
5 years, 7 months ago (2015-05-18 15:33:33 UTC) #5
noyau (Ping after 24h)
https://codereview.chromium.org/1130703003/diff/120001/components/dom_distiller/core/BUILD.gn File components/dom_distiller/core/BUILD.gn (right): https://codereview.chromium.org/1130703003/diff/120001/components/dom_distiller/core/BUILD.gn#newcode101 components/dom_distiller/core/BUILD.gn:101: "test_request_view_handle.h", If you want those tests to run on ...
5 years, 7 months ago (2015-05-20 16:29:23 UTC) #6
mdjones
https://codereview.chromium.org/1130703003/diff/120001/components/dom_distiller/core/BUILD.gn File components/dom_distiller/core/BUILD.gn (right): https://codereview.chromium.org/1130703003/diff/120001/components/dom_distiller/core/BUILD.gn#newcode101 components/dom_distiller/core/BUILD.gn:101: "test_request_view_handle.h", On 2015/05/20 16:29:23, noyau wrote: > If you ...
5 years, 7 months ago (2015-05-20 20:27:29 UTC) #7
noyau (Ping after 24h)
lgtm
5 years, 7 months ago (2015-05-21 08:24:56 UTC) #8
cjhopman
https://codereview.chromium.org/1130703003/diff/140001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://codereview.chromium.org/1130703003/diff/140001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode273 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:273: // Setup observer to inspect the RenderViewHost after committed ...
5 years, 7 months ago (2015-05-21 20:53:45 UTC) #9
mdjones
https://codereview.chromium.org/1130703003/diff/140001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://codereview.chromium.org/1130703003/diff/140001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode273 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:273: // Setup observer to inspect the RenderViewHost after committed ...
5 years, 7 months ago (2015-05-22 00:44:48 UTC) #10
cjhopman
lgtm https://codereview.chromium.org/1130703003/diff/160001/components/dom_distiller/core/html/dom_distiller_viewer.html File components/dom_distiller/core/html/dom_distiller_viewer.html (right): https://codereview.chromium.org/1130703003/diff/160001/components/dom_distiller/core/html/dom_distiller_viewer.html#newcode11 components/dom_distiller/core/html/dom_distiller_viewer.html:11: <title>$6</title> I'd renumber these so that they're in ...
5 years, 7 months ago (2015-05-26 21:48:15 UTC) #11
mdjones
https://codereview.chromium.org/1130703003/diff/160001/components/dom_distiller/core/html/dom_distiller_viewer.html File components/dom_distiller/core/html/dom_distiller_viewer.html (right): https://codereview.chromium.org/1130703003/diff/160001/components/dom_distiller/core/html/dom_distiller_viewer.html#newcode11 components/dom_distiller/core/html/dom_distiller_viewer.html:11: <title>$6</title> On 2015/05/26 21:48:15, cjhopman wrote: > I'd renumber ...
5 years, 7 months ago (2015-05-27 01:01:50 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130703003/220001
5 years, 7 months ago (2015-05-27 15:36:36 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: ios_rel_device_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_rel_device_ninja/builds/71075)
5 years, 7 months ago (2015-05-27 15:46:42 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130703003/240001
5 years, 7 months ago (2015-05-27 15:56:53 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/75752)
5 years, 7 months ago (2015-05-27 16:10:28 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130703003/260001
5 years, 7 months ago (2015-05-27 16:57:06 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/61221)
5 years, 7 months ago (2015-05-27 18:06:36 UTC) #27
cjhopman
lgtm
5 years, 7 months ago (2015-05-27 22:18:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130703003/300001
5 years, 7 months ago (2015-05-27 22:34:01 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/68955)
5 years, 7 months ago (2015-05-27 23:59:05 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1130703003/320001
5 years, 6 months ago (2015-05-28 20:11:57 UTC) #36
commit-bot: I haz the power
Committed patchset #17 (id:320001)
5 years, 6 months ago (2015-05-28 21:06:33 UTC) #37
commit-bot: I haz the power
5 years, 6 months ago (2015-05-28 21:07:22 UTC) #38
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/efe2ac1d3e1650a1cec652566542ac492eafedb3
Cr-Commit-Position: refs/heads/master@{#331852}

Powered by Google App Engine
This is Rietveld 408576698