Index: chrome/browser/resources/cryptotoken/devicefactoryregistry.js |
diff --git a/chrome/browser/resources/cryptotoken/devicefactoryregistry.js b/chrome/browser/resources/cryptotoken/devicefactoryregistry.js |
index 442fb457fd2200f2e6e45a6fc2f309e825a75435..c1f4bee5282a75be4215d18e5f17fc4428bfaf50 100644 |
--- a/chrome/browser/resources/cryptotoken/devicefactoryregistry.js |
+++ b/chrome/browser/resources/cryptotoken/devicefactoryregistry.js |
@@ -11,13 +11,18 @@ |
/** |
* @param {!GnubbyFactory} gnubbyFactory A Gnubby factory. |
* @param {!CountdownFactory} countdownFactory A countdown timer factory. |
+ * @param {!IndividualAttestation} individualAttestation An individual |
+ * attestation implementation. |
* @constructor |
*/ |
-function DeviceFactoryRegistry(gnubbyFactory, countdownFactory) { |
+function DeviceFactoryRegistry(gnubbyFactory, countdownFactory, |
+ individualAttestation) { |
/** @private {!GnubbyFactory} */ |
this.gnubbyFactory_ = gnubbyFactory; |
/** @private {!CountdownFactory} */ |
this.countdownFactory_ = countdownFactory; |
+ /** @private {!IndividualAttestation} */ |
+ this.individualAttestation_ = individualAttestation; |
} |
/** @return {!GnubbyFactory} A Gnubby factory. */ |
@@ -29,3 +34,9 @@ DeviceFactoryRegistry.prototype.getGnubbyFactory = function() { |
DeviceFactoryRegistry.prototype.getCountdownFactory = function() { |
return this.countdownFactory_; |
}; |
+ |
+/** @return {!IndividualAttestation} An individual attestation implementation. |
+ */ |
+DeviceFactoryRegistry.prototype.getIndividualAttestation = function() { |
+ return this.individualAttestation_; |
+}; |