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

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

Issue 667323002: Update protobuff and template to handle text direction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Text directionality fix Created 6 years, 2 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/html/dom_distiller_viewer.html » ('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 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();
« no previous file with comments | « no previous file | components/dom_distiller/core/html/dom_distiller_viewer.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698