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

Unified Diff: third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h

Issue 844043004: Revert of Roll DomDistillerJS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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 | « third_party/dom_distiller_js/package/js/domdistiller.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h
diff --git a/third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h b/third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h
index 28904f0bdc116ab79def68f87e8d4e4b316a6fc3..8fefe5fa59acb20ddb341eaa65536374ddba1d45 100644
--- a/third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h
+++ b/third_party/dom_distiller_js/package/proto_gen/third_party/dom_distiller_js/dom_distiller_json_converter.h
@@ -153,12 +153,10 @@
if (message.has_section()) {
dict->SetString("4", message.section());
}
- {
- base::ListValue* field_list = new base::ListValue();
- dict->Set("5", field_list);
- for (int i = 0; i < message.authors_size(); ++i) {
- field_list->AppendString(message.authors(i));
- }
+ base::ListValue* field_list = new base::ListValue();
+ dict->Set("5", field_list);
+ for (int i = 0; i < message.authors_size(); ++i) {
+ field_list->AppendString(message.authors(i));
}
return dict.Pass();
}
@@ -353,14 +351,12 @@
dom_distiller::proto::json::MarkupArticle::WriteToValue(message.article());
dict->Set("8", inner_message_value.release());
}
- {
- base::ListValue* field_list = new base::ListValue();
- dict->Set("9", field_list);
- for (int i = 0; i < message.images_size(); ++i) {
- scoped_ptr<base::Value> inner_message_value =
- dom_distiller::proto::json::MarkupImage::WriteToValue(message.images(i));
- field_list->Append(inner_message_value.release());
- }
+ base::ListValue* field_list = new base::ListValue();
+ dict->Set("9", field_list);
+ for (int i = 0; i < message.images_size(); ++i) {
+ scoped_ptr<base::Value> inner_message_value =
+ dom_distiller::proto::json::MarkupImage::WriteToValue(message.images(i));
+ field_list->Append(inner_message_value.release());
}
return dict.Pass();
}
@@ -481,14 +477,12 @@
if (message.has_total_time()) {
dict->SetDouble("5", message.total_time());
}
- {
- base::ListValue* field_list = new base::ListValue();
- dict->Set("6", field_list);
- for (int i = 0; i < message.other_times_size(); ++i) {
- scoped_ptr<base::Value> inner_message_value =
- dom_distiller::proto::json::TimingEntry::WriteToValue(message.other_times(i));
- field_list->Append(inner_message_value.release());
- }
+ base::ListValue* field_list = new base::ListValue();
+ dict->Set("6", field_list);
+ for (int i = 0; i < message.other_times_size(); ++i) {
+ scoped_ptr<base::Value> inner_message_value =
+ dom_distiller::proto::json::TimingEntry::WriteToValue(message.other_times(i));
+ field_list->Append(inner_message_value.release());
}
return dict.Pass();
}
@@ -707,14 +701,12 @@
if (message.has_text_direction()) {
dict->SetString("9", message.text_direction());
}
- {
- base::ListValue* field_list = new base::ListValue();
- dict->Set("10", field_list);
- for (int i = 0; i < message.content_images_size(); ++i) {
- scoped_ptr<base::Value> inner_message_value =
- dom_distiller::proto::json::DomDistillerResult::ContentImage::WriteToValue(message.content_images(i));
- field_list->Append(inner_message_value.release());
- }
+ base::ListValue* field_list = new base::ListValue();
+ dict->Set("10", field_list);
+ for (int i = 0; i < message.content_images_size(); ++i) {
+ scoped_ptr<base::Value> inner_message_value =
+ dom_distiller::proto::json::DomDistillerResult::ContentImage::WriteToValue(message.content_images(i));
+ field_list->Append(inner_message_value.release());
}
return dict.Pass();
}
« no previous file with comments | « third_party/dom_distiller_js/package/js/domdistiller.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698