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

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

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
Index: components/dom_distiller/core/task_tracker.cc
diff --git a/components/dom_distiller/core/task_tracker.cc b/components/dom_distiller/core/task_tracker.cc
index 957fd138d1f252743d6844e616f6a0cf5a3711b2..316c679c5fd4c31881ad4eb4c71396d55d24918c 100644
--- a/components/dom_distiller/core/task_tracker.cc
+++ b/components/dom_distiller/core/task_tracker.cc
@@ -38,7 +38,8 @@ TaskTracker::~TaskTracker() {
DCHECK(viewers_.empty());
}
-void TaskTracker::StartDistiller(DistillerFactory* factory) {
+void TaskTracker::StartDistiller(DistillerFactory* factory,
+ scoped_ptr<DistillerPage> distiller_page) {
if (distiller_) {
return;
}
@@ -50,6 +51,7 @@ void TaskTracker::StartDistiller(DistillerFactory* factory) {
distiller_ = factory->CreateDistiller();
distiller_->DistillPage(url,
+ distiller_page.Pass(),
base::Bind(&TaskTracker::OnDistillerFinished,
weak_ptr_factory_.GetWeakPtr()),
base::Bind(&TaskTracker::OnArticleDistillationUpdated,

Powered by Google App Engine
This is Rietveld 408576698