* * @param {!Promise} persistenceConsent * @param {*} scope * @param {!Location} url * @return {*}
(persistenceConsent, scope, url)
| 271 | * @return {*} |
| 272 | */ |
| 273 | scopeBaseCid_(persistenceConsent, scope, url) { |
| 274 | return getBaseCid(this, persistenceConsent).then((baseCid) => { |
| 275 | return Services.cryptoFor(this.ampdoc.win).sha384Base64( |
| 276 | baseCid + getProxySourceOrigin(url) + scope |
| 277 | ); |
| 278 | }); |
| 279 | } |
| 280 | |
| 281 | /** |
| 282 | * Checks if the page has opted in CID API for the given scope. |
no test coverage detected