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

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

Issue 504263002: Add DebugInfo to DistilledPageProto. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-intermediate-distilledpageinfo-structs
Patch Set: merged in upstream Created 6 years, 3 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 | « no previous file | 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.cc
diff --git a/components/dom_distiller/core/distiller.cc b/components/dom_distiller/core/distiller.cc
index ccfbcf36220cfa58986ba39b2dfb05edab792370..fe46182e4bcf4610a88d2f0e019b85200b6b826a 100644
--- a/components/dom_distiller/core/distiller.cc
+++ b/components/dom_distiller/core/distiller.cc
@@ -155,6 +155,11 @@ void DistillerImpl::OnPageDistillationFinished(
page_data->distilled_page_proto->data.set_html(
distiller_result->distilled_content().html());
}
+ if (distiller_result->has_debug_info() &&
+ distiller_result->debug_info().has_log()) {
+ page_data->distilled_page_proto->data.mutable_debug_info()->set_log(
+ distiller_result->debug_info().log());
+ }
if (distiller_result->has_pagination_info()) {
proto::PaginationInfo pagination_info =
« no previous file with comments | « no previous file | components/dom_distiller/core/distiller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698