Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3618)

Unified Diff: chrome/browser/resources/cryptotoken/requestqueue.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/cryptotoken/requestqueue.js
diff --git a/chrome/browser/resources/cryptotoken/requestqueue.js b/chrome/browser/resources/cryptotoken/requestqueue.js
index a787e59f40d454620ea8859aab10355d40c663d5..356a777afca57a01b9a4cd86b74ef9d84abbe839 100644
--- a/chrome/browser/resources/cryptotoken/requestqueue.js
+++ b/chrome/browser/resources/cryptotoken/requestqueue.js
@@ -85,7 +85,8 @@ RequestQueue.prototype.insertToken_ = function(token) {
this.head_ = token;
this.tail_ = token;
} else {
- if (!this.tail_) throw 'Non-empty list missing tail';
+ if (!this.tail_)
+ throw 'Non-empty list missing tail';
this.tail_.next = token;
token.prev = this.tail_;
this.tail_ = token;
@@ -182,8 +183,8 @@ function OriginKeyedRequestQueue(sysTimer) {
* @param {Countdown} timer Countdown timer
* @return {QueuedRequestToken} A token for the request.
*/
-OriginKeyedRequestQueue.prototype.queueRequest =
- function(appId, origin, beginCb, timer) {
+OriginKeyedRequestQueue.prototype.queueRequest = function(
+ appId, origin, beginCb, timer) {
var key = appId + ' ' + origin;
if (!this.requests_.hasOwnProperty(key)) {
this.requests_[key] = new RequestQueue(this.sysTimer_);

Powered by Google App Engine
This is Rietveld 408576698