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

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

Issue 688443006: roll dom distiller js and proto (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « third_party/dom_distiller_js/package/proto/dom_distiller.proto ('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 47b3a6506a6c2e0700ece52e1a715e8eadd56392..4b546e1b38b65209e076946c56d528b5891bb34b 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
@@ -641,6 +641,13 @@ namespace dom_distiller {
}
message->set_debug_level(field_value);
}
+ if (dict->HasKey("3")) {
+ std::string field_value;
+ if (!dict->GetString("3", &field_value)) {
+ goto error;
+ }
+ message->set_original_domain(field_value);
+ }
return true;
error:
@@ -655,6 +662,9 @@ namespace dom_distiller {
if (message.has_debug_level()) {
dict->SetInteger("2", message.debug_level());
}
+ if (message.has_original_domain()) {
+ dict->SetString("3", message.original_domain());
+ }
return dict.Pass();
}
};
« no previous file with comments | « third_party/dom_distiller_js/package/proto/dom_distiller.proto ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698