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

Unified Diff: tools/metrics/common/models.py

Issue 1058333002: Multi-dimension rappor metrics (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup and add xml support Created 5 years, 8 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 | « components/rappor/rappor_service_unittest.cc ('k') | tools/metrics/rappor/pretty_print.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/metrics/common/models.py
diff --git a/tools/metrics/common/models.py b/tools/metrics/common/models.py
index 3ba301c4eec8bfd368f0d983c9c24c7cb47ef4aa..bf79e57e01e4c628ccc3107f615a0c18e245b299 100644
--- a/tools/metrics/common/models.py
+++ b/tools/metrics/common/models.py
@@ -158,7 +158,8 @@ class ObjectNodeType(NodeType):
self.float_attributes +
self.string_attributes)
for attr in attributes:
- node.setAttribute(attr, str(obj[attr]))
+ if obj[attr]:
+ node.setAttribute(attr, str(obj[attr]))
PutComments(node, obj['comments'])
« no previous file with comments | « components/rappor/rappor_service_unittest.cc ('k') | tools/metrics/rappor/pretty_print.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698