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

Unified Diff: components/dom_distiller/webui/dom_distiller_handler.cc

Issue 254483003: Start requiring DistillerPage for calls to DomDistillerService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Indent fixes (full git cl format) 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
« no previous file with comments | « components/dom_distiller/standalone/content_extractor.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/dom_distiller/webui/dom_distiller_handler.cc
diff --git a/components/dom_distiller/webui/dom_distiller_handler.cc b/components/dom_distiller/webui/dom_distiller_handler.cc
index 59b4fb9943632871f4a4bfe638ba4680e66e109a..2d91dac66d7e3999b89a93843eae901ec26060f6 100644
--- a/components/dom_distiller/webui/dom_distiller_handler.cc
+++ b/components/dom_distiller/webui/dom_distiller_handler.cc
@@ -65,6 +65,7 @@ void DomDistillerHandler::HandleAddArticle(const base::ListValue* args) {
if (gurl.is_valid()) {
service_->AddToList(
gurl,
+ service_->CreateDefaultDistillerPage(),
base::Bind(base::Bind(&DomDistillerHandler::OnArticleAdded,
base::Unretained(this))));
} else {
« no previous file with comments | « components/dom_distiller/standalone/content_extractor.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698