| Index: chrome/browser/resources/cryptotoken/countdowntimer.js
|
| diff --git a/chrome/browser/resources/cryptotoken/countdowntimer.js b/chrome/browser/resources/cryptotoken/countdowntimer.js
|
| index 4e07ddbc24d548ded7b9a2a45a73bc798798323b..63175c14cfe2c1588663da9aad3bcd181dded982 100644
|
| --- a/chrome/browser/resources/cryptotoken/countdowntimer.js
|
| +++ b/chrome/browser/resources/cryptotoken/countdowntimer.js
|
| @@ -43,14 +43,12 @@ CountdownTimer.prototype.setTimeout = function(timeoutMillis, cb) {
|
| this.remainingMillis = timeoutMillis;
|
| this.cb = cb;
|
| if (this.remainingMillis > CountdownTimer.TIMER_INTERVAL_MILLIS) {
|
| - this.timeoutId =
|
| - this.sysTimer_.setInterval(this.timerTick.bind(this),
|
| - CountdownTimer.TIMER_INTERVAL_MILLIS);
|
| + this.timeoutId = this.sysTimer_.setInterval(
|
| + this.timerTick.bind(this), CountdownTimer.TIMER_INTERVAL_MILLIS);
|
| } else {
|
| // Set a one-shot timer for the last interval.
|
| - this.timeoutId =
|
| - this.sysTimer_.setTimeout(
|
| - this.timerTick.bind(this), this.remainingMillis);
|
| + this.timeoutId = this.sysTimer_.setTimeout(
|
| + this.timerTick.bind(this), this.remainingMillis);
|
| }
|
| return true;
|
| };
|
| @@ -114,8 +112,7 @@ function CountdownTimerFactory(sysTimer) {
|
| * @param {function()=} opt_cb Called back when the countdown expires.
|
| * @return {!Countdown} The timer.
|
| */
|
| -CountdownTimerFactory.prototype.createTimer =
|
| - function(timeoutMillis, opt_cb) {
|
| +CountdownTimerFactory.prototype.createTimer = function(timeoutMillis, opt_cb) {
|
| return new CountdownTimer(this.sysTimer_, timeoutMillis, opt_cb);
|
| };
|
|
|
| @@ -177,9 +174,9 @@ function getTimeoutValueFromRequest(request, opt_defaultTimeoutSeconds) {
|
| * @param {number=} opt_attenuationSeconds Attenuation value in seconds.
|
| * @return {!Countdown} A countdown timer.
|
| */
|
| -function createAttenuatedTimer(timerFactory, timeoutValueSeconds,
|
| - opt_attenuationSeconds) {
|
| - timeoutValueSeconds = attenuateTimeoutInSeconds(timeoutValueSeconds,
|
| - opt_attenuationSeconds);
|
| +function createAttenuatedTimer(
|
| + timerFactory, timeoutValueSeconds, opt_attenuationSeconds) {
|
| + timeoutValueSeconds =
|
| + attenuateTimeoutInSeconds(timeoutValueSeconds, opt_attenuationSeconds);
|
| return timerFactory.createTimer(timeoutValueSeconds * 1000);
|
| }
|
|
|