Index: components/dom_distiller/core/distiller.cc |
diff --git a/components/dom_distiller/core/distiller.cc b/components/dom_distiller/core/distiller.cc |
index fe46182e4bcf4610a88d2f0e019b85200b6b826a..cbc6dbab1eec49515713689a718c44187aacc6db 100644 |
--- a/components/dom_distiller/core/distiller.cc |
+++ b/components/dom_distiller/core/distiller.cc |
@@ -161,6 +161,13 @@ void DistillerImpl::OnPageDistillationFinished( |
distiller_result->debug_info().log()); |
} |
+ if (distiller_result->has_text_direction()) { |
+ page_data->distilled_page_proto->data.set_text_direction( |
+ distiller_result->text_direction()); |
+ } else { |
+ page_data->distilled_page_proto->data.set_text_direction("auto"); |
+ } |
+ |
if (distiller_result->has_pagination_info()) { |
proto::PaginationInfo pagination_info = |
distiller_result->pagination_info(); |