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

Unified Diff: components/dom_distiller/core/distiller_page.cc

Issue 286583002: Pull DomDistillerOptions up to the DistillerFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: :/ Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/dom_distiller/core/distiller_page.h ('k') | components/dom_distiller/core/distiller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/core/distiller_page.cc
diff --git a/components/dom_distiller/core/distiller_page.cc b/components/dom_distiller/core/distiller_page.cc
index ceee2a8ba79caf9eccc501159fe51a5d5fc38dd0..a44531cc90162284b3f809eacf9a8603545aed01 100644
--- a/components/dom_distiller/core/distiller_page.cc
+++ b/components/dom_distiller/core/distiller_page.cc
@@ -58,14 +58,15 @@ DistillerPage::DistillerPage() : ready_(true) {}
DistillerPage::~DistillerPage() {}
-void DistillerPage::DistillPage(const GURL& gurl,
- const DistillerPageCallback& callback) {
+void DistillerPage::DistillPage(
+ const GURL& gurl,
+ const dom_distiller::proto::DomDistillerOptions options,
+ const DistillerPageCallback& callback) {
DCHECK(ready_);
// It is only possible to distill one page at a time. |ready_| is reset when
// the callback to OnDistillationDone happens.
ready_ = false;
distiller_page_callback_ = callback;
- dom_distiller::proto::DomDistillerOptions options;
DistillPageImpl(gurl, GetDistillerScriptWithOptions(options));
}
« no previous file with comments | « components/dom_distiller/core/distiller_page.h ('k') | components/dom_distiller/core/distiller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698