Index: tracing/tracing/model/clock_sync_manager.html |
diff --git a/tracing/tracing/model/clock_sync_manager.html b/tracing/tracing/model/clock_sync_manager.html |
index 82531ce46a3b8b41ea444bfaba3890340f22ef74..4aaa0e9a813a02b0298f5ca78a84f6afa3862015 100644 |
--- a/tracing/tracing/model/clock_sync_manager.html |
+++ b/tracing/tracing/model/clock_sync_manager.html |
@@ -148,29 +148,31 @@ tr.exportTo('tr.model', function() { |
* the first alphabetically is selected. |
*/ |
getModelTimeTransformer: function(domainId) { |
- return this.getModelTimeTransformerRaw_(domainId).fn; |
+ this.onDomainSeen_(domainId); |
+ |
+ if (!this.modelDomainId_) |
+ this.selectModelDomainId_(); |
+ |
+ return this.getTimeTransformerRaw_(domainId, this.modelDomainId_).fn; |
}, |
/** |
* Returns the error associated with the transformation given by |
* |getModelTimeTransformer(domainId)|. |
*/ |
- getModelTimeTransformerError: function(domainId) { |
- return this.getModelTimeTransformerRaw_(domainId).error; |
+ getTimeTransformerError: function(fromDomainId, toDomainId) { |
+ this.onDomainSeen_(fromDomainId); |
+ this.onDomainSeen_(toDomainId); |
+ return this.getTimeTransformerRaw_(fromDomainId, toDomainId).error; |
}, |
- getModelTimeTransformerRaw_: function(domainId) { |
- this.onDomainSeen_(domainId); |
- |
- if (!this.modelDomainId_) |
- this.selectModelDomainId_(); |
- |
+ getTimeTransformerRaw_: function(fromDomainId, toDomainId) { |
var transformer = |
- this.getTransformerBetween_(domainId, this.modelDomainId_); |
+ this.getTransformerBetween_(fromDomainId, toDomainId); |
if (!transformer) { |
throw new Error('No clock sync markers exist pairing clock domain "' + |
- domainId + '" ' + 'with model clock domain "' + |
- this.modelDomainId_ + '".'); |
+ fromDomainId + '" ' + 'with target clock domain "' + |
+ toDomainId + '".'); |
} |
return transformer; |