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

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

Issue 260073009: [dom_distiller] Add support for incremental viewer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase 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
Index: components/dom_distiller/core/distiller.cc
diff --git a/components/dom_distiller/core/distiller.cc b/components/dom_distiller/core/distiller.cc
index 0b97958f7d1b352079d626163f09ba7942350abc..070e6818d9139095afce639d9be775e473e1ff44 100644
--- a/components/dom_distiller/core/distiller.cc
+++ b/components/dom_distiller/core/distiller.cc
@@ -140,8 +140,7 @@ void DistillerImpl::OnPageDistillationFinished(
page_data->distilled_page_proto =
new base::RefCountedData<DistilledPageProto>();
page_data->page_num = page_num;
- page_data->title = distilled_page->title;
-
+ page_data->distilled_page_proto->data.set_title(distilled_page->title);
page_data->distilled_page_proto->data.set_url(page_url.spec());
page_data->distilled_page_proto->data.set_html(distilled_page->html);
@@ -266,7 +265,7 @@ void DistillerImpl::RunDistillerCallbackIfDone() {
*(article_proto->add_pages()) = page_data->distilled_page_proto->data;
if (first_page) {
- article_proto->set_title(page_data->title);
+ article_proto->set_title(page_data->distilled_page_proto->data.title());
first_page = false;
}

Powered by Google App Engine
This is Rietveld 408576698