* @param {!Object} response * @param {boolean} success * @private
(response, success)
| 14281 | * @private |
| 14282 | */ |
| 14283 | complete_(response, success) { |
| 14284 | this.deps_ |
| 14285 | .eventManager() |
| 14286 | .logSwgEvent(AnalyticsEvent.ACTION_GOOGLE_UPDATED_CLOSE, true); |
| 14287 | const userToken = response['swgUserToken']; |
| 14288 | if (userToken) { |
| 14289 | this.deps_.storage().set(Constants$1.USER_TOKEN, userToken, true); |
| 14290 | } |
| 14291 | this.callbacks_.triggerLinkComplete(); |
| 14292 | this.callbacks_.resetLinkProgress(); |
| 14293 | this.entitlementsManager_.setToastShown(true); |
| 14294 | this.entitlementsManager_.unblockNextNotification(); |
| 14295 | this.entitlementsManager_.reset(success); |
| 14296 | if (response && response['entitlements']) { |
| 14297 | this.entitlementsManager_.pushNextEntitlements(response['entitlements']); |
| 14298 | } |
| 14299 | this.completeResolver_(); |
| 14300 | } |
| 14301 | |
| 14302 | /** @return {!Promise} */ |
| 14303 | whenComplete() { |
no test coverage detected