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

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

Issue 302553009: Roll dom_distiller_js (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 f02c1edff715e2d3d7fcba0a11d86d58f650e474..4ab82347ec4fdd8681a65f38c81013444de5f24f 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
@@ -174,6 +174,13 @@ namespace dom_distiller {
}
message.set_extract_text_only(field_value);
}
+ if (dict->HasKey("2")) {
+ int field_value;
+ if (!dict->GetInteger("2", &field_value)) {
+ goto error;
+ }
+ message.set_debug_level(field_value);
+ }
return message;
error:
@@ -185,6 +192,9 @@ namespace dom_distiller {
if (message.has_extract_text_only()) {
dict->SetBoolean("1", message.extract_text_only());
}
+ if (message.has_debug_level()) {
+ dict->SetInteger("2", message.debug_level());
+ }
return dict.PassAs<base::Value>();
}
};
« 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