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

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: 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/distiller.cc
diff --git a/components/dom_distiller/core/distiller.cc b/components/dom_distiller/core/distiller.cc
index d720a5be6bb8750a80f7ed9fb433f6f6fd8f59bc..cecf9098b3af992863f942e23bcf5865f819561e 100644
--- a/components/dom_distiller/core/distiller.cc
+++ b/components/dom_distiller/core/distiller.cc
@@ -141,8 +141,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);
@@ -267,7 +266,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