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

Issue 151003006: Add support for distilling arbitrary URLs in DOM Distiller Viewer. (Closed)

Created:
6 years, 10 months ago by nyquist
Modified:
6 years, 9 months ago
Reviewers:
shashi, cjhopman, nasko
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, oshima+watch_chromium.org
Visibility:
Public.

Description

Add support for distilling arbitrary URLs in DOM Distiller Viewer. This adds support for requesting to view arbitrary URLs in the DOM Distiller viewer. Previously, an entry first had to be added to the list of articles. Also fixes the CSP for the viewer to be in the correct format. BUG=319881 TBR=rsleevi@chromium.org,joi@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=254458

Patch Set 1 #

Total comments: 25

Patch Set 2 : Rebased #

Patch Set 3 : Rebased #

Patch Set 4 : Rebased #

Patch Set 5 : Rebased #

Patch Set 6 : Addressed comments. added unit tests #

Total comments: 31

Patch Set 7 : Addressed all comments #

Total comments: 30

Patch Set 8 : Addressed nits #

Patch Set 9 : Re-upload #

Total comments: 10

Patch Set 10 : Addressed comments from nasko #

Patch Set 11 : Rebased #

Patch Set 12 : Added missing include #

Patch Set 13 : Added new strings to iOS whitelist #

Unified diffs Side-by-side diffs Delta from patch set Stats (+522 lines, -79 lines) Patch
M build/ios/grit_whitelist.txt View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc View 1 2 3 4 5 6 7 6 chunks +24 lines, -7 lines 0 comments Download
M components/components_tests.gyp View 1 2 3 4 5 6 7 8 9 10 2 chunks +7 lines, -0 lines 0 comments Download
M components/dom_distiller.gypi View 1 2 3 4 5 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/dom_distiller/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.h View 1 2 3 4 5 6 7 2 chunks +19 lines, -6 lines 0 comments Download
M components/dom_distiller/content/dom_distiller_viewer_source.cc View 1 2 3 4 5 6 7 8 9 8 chunks +49 lines, -22 lines 0 comments Download
A components/dom_distiller/content/dom_distiller_viewer_source_unittest.cc View 1 2 3 4 5 6 1 chunk +121 lines, -0 lines 0 comments Download
M components/dom_distiller/content/resources/dom_distiller_viewer.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M components/dom_distiller/core/dom_distiller_service.h View 1 2 3 4 5 6 7 8 9 1 chunk +51 lines, -20 lines 0 comments Download
M components/dom_distiller/core/task_tracker.h View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
A components/dom_distiller/core/url_constants.h View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A components/dom_distiller/core/url_constants.cc View 1 2 3 4 5 1 chunk +13 lines, -0 lines 0 comments Download
A components/dom_distiller/core/url_utils.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +35 lines, -0 lines 0 comments Download
A components/dom_distiller/core/url_utils.cc View 1 2 3 4 5 6 7 8 9 1 chunk +52 lines, -0 lines 0 comments Download
A components/dom_distiller/core/url_utils_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +25 lines, -0 lines 0 comments Download
M components/dom_distiller/webui/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M components/dom_distiller/webui/dom_distiller_handler.h View 6 2 chunks +5 lines, -2 lines 0 comments Download
M components/dom_distiller/webui/dom_distiller_handler.cc View 1 2 3 4 5 6 7 8 9 4 chunks +42 lines, -4 lines 0 comments Download
M components/dom_distiller/webui/dom_distiller_ui.cc View 1 1 chunk +11 lines, -8 lines 0 comments Download
M components/dom_distiller/webui/resources/about_dom_distiller.html View 1 chunk +6 lines, -6 lines 0 comments Download
M components/dom_distiller/webui/resources/about_dom_distiller.js View 3 chunks +29 lines, -0 lines 0 comments Download
M components/dom_distiller_strings.grdp View 1 2 3 4 5 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 26 (0 generated)
nyquist
PTAL
6 years, 10 months ago (2014-02-05 20:31:49 UTC) #1
shashi
https://codereview.chromium.org/151003006/diff/1/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/151003006/diff/1/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode162 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:162: const GURL url(std::string(chrome::kDomDistillerScheme) + "://" + nit: can be ...
6 years, 10 months ago (2014-02-05 22:28:07 UTC) #2
cjhopman
https://codereview.chromium.org/151003006/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/151003006/diff/1/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode42 components/dom_distiller/content/dom_distiller_viewer_source.cc:42: substitutions.push_back(std::string("/") + kCssPath); // $2 why not put this ...
6 years, 10 months ago (2014-02-05 23:03:05 UTC) #3
shashi
PTAL, gentle reminder.
6 years, 10 months ago (2014-02-07 19:02:24 UTC) #4
nyquist
PTAL https://codereview.chromium.org/151003006/diff/1/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/151003006/diff/1/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode162 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:162: const GURL url(std::string(chrome::kDomDistillerScheme) + "://" + On 2014/02/05 ...
6 years, 10 months ago (2014-02-25 20:30:24 UTC) #5
shashi
https://codereview.chromium.org/151003006/diff/1/components/dom_distiller/webui/dom_distiller_handler.cc File components/dom_distiller/webui/dom_distiller_handler.cc (right): https://codereview.chromium.org/151003006/diff/1/components/dom_distiller/webui/dom_distiller_handler.cc#newcode66 components/dom_distiller/webui/dom_distiller_handler.cc:66: std::string(kUrlKey) + "=" + Is this refactored. On 2014/02/25 ...
6 years, 10 months ago (2014-02-25 21:48:07 UTC) #6
cjhopman
https://codereview.chromium.org/151003006/diff/230001/components/dom_distiller/content/dom_distiller_viewer_source.h File components/dom_distiller/content/dom_distiller_viewer_source.h (right): https://codereview.chromium.org/151003006/diff/230001/components/dom_distiller/content/dom_distiller_viewer_source.h#newcode30 components/dom_distiller/content/dom_distiller_viewer_source.h:30: // Overridden from content::URLDataSource: Making the URLDataSource overrides private ...
6 years, 10 months ago (2014-02-25 22:25:13 UTC) #7
nyquist
PTAL https://codereview.chromium.org/151003006/diff/230001/components/dom_distiller/content/dom_distiller_viewer_source.cc File components/dom_distiller/content/dom_distiller_viewer_source.cc (right): https://codereview.chromium.org/151003006/diff/230001/components/dom_distiller/content/dom_distiller_viewer_source.cc#newcode200 components/dom_distiller/content/dom_distiller_viewer_source.cc:200: bool has_url = !requested_url_str.empty() && requested_url.is_valid(); On 2014/02/25 ...
6 years, 9 months ago (2014-02-27 00:07:37 UTC) #8
shashi
Mostly nits. https://chromiumcodereview.appspot.com/151003006/diff/250001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc File chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc (right): https://chromiumcodereview.appspot.com/151003006/diff/250001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode25 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:25: #include "components/dom_distiller/core/url_constants.h" nit: is this import needed? ...
6 years, 9 months ago (2014-02-27 04:29:08 UTC) #9
cjhopman
lgtm
6 years, 9 months ago (2014-02-27 17:35:19 UTC) #10
nyquist
Addressed all nits. Added nasko@ for security review. https://codereview.chromium.org/151003006/diff/250001/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/151003006/diff/250001/chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc#newcode25 chrome/browser/dom_distiller/dom_distiller_viewer_source_browsertest.cc:25: #include ...
6 years, 9 months ago (2014-02-27 19:50:19 UTC) #11
shashi
lgtm, thanks!
6 years, 9 months ago (2014-02-27 20:13:24 UTC) #12
nasko
I can't claim I understand the full CL, but looking from security and general code ...
6 years, 9 months ago (2014-02-27 22:40:44 UTC) #13
nyquist
nasko: PTAL https://codereview.chromium.org/151003006/diff/290001/components/dom_distiller/core/dom_distiller_service.h File components/dom_distiller/core/dom_distiller_service.h (left): https://codereview.chromium.org/151003006/diff/290001/components/dom_distiller/core/dom_distiller_service.h#oldcode92 components/dom_distiller/core/dom_distiller_service.h:92: DISALLOW_COPY_AND_ASSIGN(DomDistillerService); On 2014/02/27 22:40:44, Nasko Oskov wrote: ...
6 years, 9 months ago (2014-02-28 16:46:51 UTC) #14
nasko
LGTM
6 years, 9 months ago (2014-02-28 18:10:18 UTC) #15
nyquist
The CQ bit was checked by nyquist@chromium.org
6 years, 9 months ago (2014-02-28 20:10:44 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/151003006/330001
6 years, 9 months ago (2014-02-28 20:11:21 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-02-28 20:37:18 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_clang_dbg
6 years, 9 months ago (2014-02-28 20:37:18 UTC) #19
nyquist
The CQ bit was checked by nyquist@chromium.org
6 years, 9 months ago (2014-03-01 00:00:32 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/151003006/350001
6 years, 9 months ago (2014-03-01 00:01:38 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 9 months ago (2014-03-01 00:44:21 UTC) #22
commit-bot: I haz the power
Retried try job too often on ios_rel_device for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=ios_rel_device&number=120303
6 years, 9 months ago (2014-03-01 00:44:21 UTC) #23
nyquist
The CQ bit was checked by nyquist@chromium.org
6 years, 9 months ago (2014-03-03 07:56:15 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/nyquist@chromium.org/151003006/370001
6 years, 9 months ago (2014-03-03 07:56:21 UTC) #25
commit-bot: I haz the power
6 years, 9 months ago (2014-03-03 12:30:54 UTC) #26
Message was sent while issue was closed.
Change committed as 254458

Powered by Google App Engine
This is Rietveld 408576698