* @return {!Promise }
()
| 59 | * @return {!Promise<JsonObject>} |
| 60 | */ |
| 61 | loadConfig() { |
| 62 | this.win_ = this.element_.ownerDocument.defaultView; |
| 63 | this.isSandbox_ = this.element_.hasAttribute('sandbox'); |
| 64 | |
| 65 | return Promise.all([this.fetchRemoteConfig_(), this.fetchVendorConfig_()]) |
| 66 | .then(this.processConfigs_.bind(this)) |
| 67 | .then(this.checkWarningMessage_.bind(this)) |
| 68 | .then(() => this.config_); |
| 69 | } |
| 70 | |
| 71 | /** |
| 72 | * Constructs the URL where the given vendor config is located |
no test coverage detected