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

Issue 2666643002: Remove usage of DomDistillerService in ReadingListDownloadService. (Closed)

Created:
3 years, 10 months ago by Olivier
Modified:
3 years, 10 months ago
CC:
chromium-reviews, marq+watch_chromium.org, stkhapugin, pkl (ping after 24h if needed), noyau+watch_chromium.org, sdefresne+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove usage of DomDistillerService in ReadingListDownloadService. DomDistillerService is a service destined to display a distilled version to the user. It's settings are optimized to distill pages that are already fully loaded and to display the page to the user as fast as possible (through a cache feature).. ReadingList has a different objective. Download the page in background and store the result for a later use. ReadingList does not want cache, sync or storage of distilled articles. This led to have special cases in the usage of DomDistillerService in ReadingList code. But the fundamental issue is that ReadingListDownloadService should not use DomDistillerService and directly use the distiller. This will avoid side effects if some settings changes for ReaderMode. Remove dependency to the DomDistillerService and use directly the distiller. BUG=686640 Review-Url: https://codereview.chromium.org/2666643002 Cr-Commit-Position: refs/heads/master@{#447986} Committed: https://chromium.googlesource.com/chromium/src/+/38219b8d2fbcb7cb75723e3602bda3ce314f0ec2

Patch Set 1 #

Patch Set 2 : clean #

Patch Set 3 : cleaner #

Patch Set 4 : missing JS #

Total comments: 8

Patch Set 5 : feedback #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -44 lines) Patch
M ios/chrome/browser/dom_distiller/distiller_viewer.h View 1 2 3 4 3 chunks +25 lines, -6 lines 0 comments Download
M ios/chrome/browser/dom_distiller/distiller_viewer.cc View 1 2 3 2 chunks +30 lines, -9 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.h View 1 2 3 chunks +2 lines, -5 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M ios/chrome/browser/reading_list/reading_list_download_service_factory.cc View 1 2 3 4 3 chunks +14 lines, -7 lines 2 comments Download
M ios/chrome/browser/reading_list/url_downloader.h View 1 2 3 chunks +3 lines, -6 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader.cc View 1 2 2 chunks +6 lines, -6 lines 0 comments Download
M ios/chrome/browser/reading_list/url_downloader_unittest.mm View 1 1 chunk +1 line, -1 line 0 comments Download
M ios/chrome/browser/ui/reader_mode/reader_mode_controller.mm View 1 2 1 chunk +1 line, -2 lines 0 comments Download

Messages

Total messages: 25 (16 generated)
Olivier
3 years, 10 months ago (2017-01-31 09:23:17 UTC) #11
jif
lgtm with small nits https://codereview.chromium.org/2666643002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h File ios/chrome/browser/dom_distiller/distiller_viewer.h (right): https://codereview.chromium.org/2666643002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h#newcode57 ios/chrome/browser/dom_distiller/distiller_viewer.h:57: DistillerViewer(dom_distiller::DomDistillerService* distillerService, I think this ...
3 years, 10 months ago (2017-01-31 10:07:53 UTC) #12
Olivier
Thanks https://codereview.chromium.org/2666643002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h File ios/chrome/browser/dom_distiller/distiller_viewer.h (right): https://codereview.chromium.org/2666643002/diff/60001/ios/chrome/browser/dom_distiller/distiller_viewer.h#newcode57 ios/chrome/browser/dom_distiller/distiller_viewer.h:57: DistillerViewer(dom_distiller::DomDistillerService* distillerService, On 2017/01/31 10:07:53, jif wrote: > ...
3 years, 10 months ago (2017-01-31 10:25:24 UTC) #13
Olivier
Thanks
3 years, 10 months ago (2017-01-31 10:25:25 UTC) #14
Olivier
+noyau as DomDistiller owner.
3 years, 10 months ago (2017-01-31 10:29:58 UTC) #17
noyau (Ping after 24h)
lgtm https://codereview.chromium.org/2666643002/diff/80001/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc File ios/chrome/browser/reading_list/reading_list_download_service_factory.cc (right): https://codereview.chromium.org/2666643002/diff/80001/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc#newcode62 ios/chrome/browser/reading_list/reading_list_download_service_factory.cc:62: dom_distiller::proto::DomDistillerOptions options; Any options we should set here?
3 years, 10 months ago (2017-02-03 12:56:11 UTC) #18
Olivier
https://codereview.chromium.org/2666643002/diff/80001/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc File ios/chrome/browser/reading_list/reading_list_download_service_factory.cc (right): https://codereview.chromium.org/2666643002/diff/80001/ios/chrome/browser/reading_list/reading_list_download_service_factory.cc#newcode62 ios/chrome/browser/reading_list/reading_list_download_service_factory.cc:62: dom_distiller::proto::DomDistillerOptions options; On 2017/02/03 12:56:11, noyau wrote: > Any ...
3 years, 10 months ago (2017-02-03 13:01:32 UTC) #19
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/2666643002/80001
3 years, 10 months ago (2017-02-03 13:18:13 UTC) #22
commit-bot: I haz the power
3 years, 10 months ago (2017-02-03 13:38:56 UTC) #25
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/38219b8d2fbcb7cb75723e3602bd...

Powered by Google App Engine
This is Rietveld 408576698