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

Unified Diff: chrome/browser/resources/bluetooth_internals/snackbar.js

Issue 2600683002: Run tools/clang-format-js on some of chrome/browser/resources/ (Closed)
Patch Set: hackhackhack Created 3 years, 11 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/bluetooth_internals/snackbar.js
diff --git a/chrome/browser/resources/bluetooth_internals/snackbar.js b/chrome/browser/resources/bluetooth_internals/snackbar.js
index 9cca49e23420cdf81f5cd01551ce2acb0a2e3e16..aabab6648e35987feab72afeaeff7742aba38651 100644
--- a/chrome/browser/resources/bluetooth_internals/snackbar.js
+++ b/chrome/browser/resources/bluetooth_internals/snackbar.js
@@ -71,7 +71,8 @@ cr.define('snackbar', function() {
this.actionLink_.textContent = options.actionText || 'Dismiss';
this.actionLink_.addEventListener('click', function() {
- if (options.action) options.action();
+ if (options.action)
+ options.action();
this.dismiss();
}.bind(this));
},
@@ -81,8 +82,10 @@ cr.define('snackbar', function() {
*/
show: function() {
this.classList.add('open');
- if (Snackbar.hasContentFocus_) this.startTimeout_();
- else this.stopTimeout_();
+ if (Snackbar.hasContentFocus_)
+ this.startTimeout_();
+ else
+ this.stopTimeout_();
document.addEventListener('contentfocus', this.boundStartTimeout_);
document.addEventListener('contentblur', this.boundStopTimeout_);
@@ -213,8 +216,10 @@ cr.define('snackbar', function() {
* dismissing.
*/
Snackbar.dismiss = function(clearQueue) {
- if (clearQueue) Snackbar.queue_ = [];
- if (Snackbar.current_) Snackbar.current_.dismiss();
+ if (clearQueue)
+ Snackbar.queue_ = [];
+ if (Snackbar.current_)
+ Snackbar.current_.dismiss();
};

Powered by Google App Engine
This is Rietveld 408576698