Chromium Code Reviews| Index: ios/chrome/browser/dom_distiller/distiller_viewer.h |
| diff --git a/ios/chrome/browser/dom_distiller/distiller_viewer.h b/ios/chrome/browser/dom_distiller/distiller_viewer.h |
| index 25a99efcdbd03dd2e4da999621d5d31d16631be7..b4a82b37732736244914d2eb6e0e24ab0b4fa572 100644 |
| --- a/ios/chrome/browser/dom_distiller/distiller_viewer.h |
| +++ b/ios/chrome/browser/dom_distiller/distiller_viewer.h |
| @@ -52,16 +52,15 @@ class DistillerViewerInterface : public DomDistillerRequestViewBase { |
| class DistillerViewer : public DistillerViewerInterface { |
| public: |
| // Creates a |DistillerView| that will be used to distill |url|. |
| - // If |factory| is not null, it will be used to create the DistillerPage that |
| - // will load the URL and distill the page. If |factory| is null, the default |
| - // factory of |distillerService| will be used. |
| + // If |page| is not null, it will be used to load |url| and inject the page. |
| + // If |page| is null, the default factory of |distillerService| will be used. |
|
jif
2017/01/20 10:23:19
I think that forcing the caller of the constructor
Olivier
2017/01/20 10:47:06
The pattern with a default factory is used on othe
|
| // |callback| is called when distillation is finished with the protobuf |
| // containing the distilled page. |
| DistillerViewer(dom_distiller::DomDistillerService* distillerService, |
| PrefService* prefs, |
| const GURL& url, |
| const DistillationFinishedCallback& callback, |
| - const DistillerPageFactory* factory); |
| + std::unique_ptr<dom_distiller::DistillerPage> page); |
| ~DistillerViewer() override; |
| void OnArticleReady( |