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

Issue 936843002: Upstream iOS implementation of dom_distiller (Closed)

Created:
5 years, 10 months ago by sdefresne
Modified:
5 years, 10 months ago
CC:
chromium-reviews, kkhorimoto, noyau (Ping after 24h)
Base URL:
https://chromium.googlesource.com/chromium/src.git@web_controller_provider
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Upstream iOS implementation of dom_distiller Provides an implementation of DistillerPage that use the web API to inject the distiller JavaScript code into the page. Introduce an iOS specific implementation of domdistiller.js to work around a crash in UIWebView when creating a local "window" object. BUG=459678 Committed: https://crrev.com/27eaf1e3fc955adc0a555844320738cf867cc38b Cr-Commit-Position: refs/heads/master@{#317813}

Patch Set 1 #

Patch Set 2 : Add missing (optional) semi-colon in the javascript #

Total comments: 14

Patch Set 3 : Address comments #

Total comments: 23

Patch Set 4 : Address comments #

Patch Set 5 : Address comments #

Patch Set 6 : Address comments #

Patch Set 7 : Address comments #

Patch Set 8 : Add blank lines #

Unified diffs Side-by-side diffs Delta from patch set Stats (+289 lines, -1 line) Patch
M components/dom_distiller.gypi View 1 2 3 4 5 6 1 chunk +22 lines, -0 lines 0 comments Download
A + components/dom_distiller/ios/DEPS View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A components/dom_distiller/ios/OWNERS View 1 chunk +1 line, -0 lines 0 comments Download
A components/dom_distiller/ios/distiller_page_factory_ios.h View 1 2 3 1 chunk +38 lines, -0 lines 0 comments Download
A components/dom_distiller/ios/distiller_page_factory_ios.mm View 1 2 3 1 chunk +28 lines, -0 lines 0 comments Download
A components/dom_distiller/ios/distiller_page_ios.h View 1 2 3 4 5 6 7 1 chunk +58 lines, -0 lines 0 comments Download
A components/dom_distiller/ios/distiller_page_ios.mm View 1 2 3 4 5 6 1 chunk +111 lines, -0 lines 0 comments Download
A components/dom_distiller/ios/javascript/domdistiller.js View 1 1 chunk +24 lines, -0 lines 0 comments Download
M components/resources/dom_distiller_resources.grdp View 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 28 (10 generated)
sdefresne
droger: please review the code (this is almost straight-forward port of downstream code) and the ...
5 years, 10 months ago (2015-02-18 19:29:18 UTC) #2
noyau (Ping after 24h)
https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h#newcode1 components/dom_distiller/ios/distiller_page_ios.h:1: // Copyright 2014 The Chromium Authors. All rights reserved. ...
5 years, 10 months ago (2015-02-19 09:15:43 UTC) #4
droger
lgtm https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h#newcode10 components/dom_distiller/ios/distiller_page_ios.h:10: #include "base/mac/scoped_nsobject.h" Remove. https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h#newcode16 components/dom_distiller/ios/distiller_page_ios.h:16: class GURL; You ...
5 years, 10 months ago (2015-02-19 09:38:49 UTC) #5
sdefresne
PTAL https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/936843002/diff/20001/components/dom_distiller/ios/distiller_page_ios.h#newcode1 components/dom_distiller/ios/distiller_page_ios.h:1: // Copyright 2014 The Chromium Authors. All rights ...
5 years, 10 months ago (2015-02-19 10:50:13 UTC) #7
sdefresne
PTAL
5 years, 10 months ago (2015-02-19 10:50:20 UTC) #8
noyau (Ping after 24h)
lgtm
5 years, 10 months ago (2015-02-19 10:57:13 UTC) #9
sdefresne
bengr: could you review components/dom_distiller as OWNERS?
5 years, 10 months ago (2015-02-20 10:29:52 UTC) #11
nyquist
lgtm By the way, we are hoping to move the JS into the external repo. ...
5 years, 10 months ago (2015-02-20 18:55:48 UTC) #13
bengr
nits. lgtm. https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.h File components/dom_distiller/ios/distiller_page_factory_ios.h (right): https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller/ios/distiller_page_factory_ios.h#newcode19 components/dom_distiller/ios/distiller_page_factory_ios.h:19: class DistillerPageFactoryIOS : public DistillerPageFactory { Add ...
5 years, 10 months ago (2015-02-20 20:11:38 UTC) #14
sdefresne
Thank you for the review. https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller.gypi File components/dom_distiller.gypi (right): https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller.gypi#newcode190 components/dom_distiller.gypi:190: '../ios/provider/ios_provider_web.gyp:ios_provider_web', On 2015/02/20 at ...
5 years, 10 months ago (2015-02-23 11:08:58 UTC) #16
sdefresne
noyau: I've removed unused #include and unused dependencies, could you take another quick look?
5 years, 10 months ago (2015-02-23 13:16:26 UTC) #17
noyau (Ping after 24h)
lgtm again. Note that you missed two comments by bengr about missing empty lines.
5 years, 10 months ago (2015-02-23 13:22:51 UTC) #18
sdefresne
Thank you. https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller/ios/distiller_page_ios.h File components/dom_distiller/ios/distiller_page_ios.h (right): https://codereview.chromium.org/936843002/diff/40001/components/dom_distiller/ios/distiller_page_ios.h#newcode40 components/dom_distiller/ios/distiller_page_ios.h:40: friend class DistillerWebStateObserver; On 2015/02/20 at 20:11:38, ...
5 years, 10 months ago (2015-02-23 14:48:13 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/936843002/140001
5 years, 10 months ago (2015-02-23 14:48:23 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: ios_dbg_simulator on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/61612)
5 years, 10 months ago (2015-02-23 14:50:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/936843002/140001
5 years, 10 months ago (2015-02-24 17:03:38 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 10 months ago (2015-02-24 17:19:21 UTC) #27
commit-bot: I haz the power
5 years, 10 months ago (2015-02-24 17:20:01 UTC) #28
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/27eaf1e3fc955adc0a555844320738cf867cc38b
Cr-Commit-Position: refs/heads/master@{#317813}

Powered by Google App Engine
This is Rietveld 408576698