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

Unified Diff: tracing/tracing/value/diagnostics/related_value_map.html

Issue 2162963002: [polymer] Merge of master into polymer10-migration (Closed) Base URL: git@github.com:catapult-project/catapult.git@polymer10-migration
Patch Set: Merge polymer10-migration int polymer10-merge Created 4 years, 5 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 | « tracing/tracing/value/diagnostics/related_event_set.html ('k') | tracing/tracing/value/numeric.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tracing/tracing/value/diagnostics/related_value_map.html
diff --git a/tracing/tracing/value/diagnostics/related_value_map.html b/tracing/tracing/value/diagnostics/related_value_map.html
index b3ee50110171d9e631917b0c18b58240282b019c..12fcde8fb415fcd6f9c912f7084c7c71b1c28034 100644
--- a/tracing/tracing/value/diagnostics/related_value_map.html
+++ b/tracing/tracing/value/diagnostics/related_value_map.html
@@ -21,7 +21,7 @@ tr.exportTo('tr.v.d', function() {
__proto__: tr.v.d.Diagnostic.prototype,
/**
- * Add a named Value to this map.
+ * Add a Value by an explicit name to this map.
*
* @param {string} name
* @param {!(tr.v.d.ValueRef|tr.v.Value)} value
@@ -35,6 +35,15 @@ tr.exportTo('tr.v.d', function() {
},
/**
+ * Add a Value implicitly by its own name to this map.
+ *
+ * @param {!(tr.v.d.ValueRef|tr.v.Value)} value
+ */
+ add: function(value) {
+ this.set(value.name, value);
+ },
+
+ /**
* Iterate over the named Values.
*
* @param {!function(string, !(tr.v.d.ValueRef|tr.v.Value))} callback
« no previous file with comments | « tracing/tracing/value/diagnostics/related_event_set.html ('k') | tracing/tracing/value/numeric.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698