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

Unified Diff: chrome/browser/resources/extensions/focus_row.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/extensions/focus_row.js
diff --git a/chrome/browser/resources/extensions/focus_row.js b/chrome/browser/resources/extensions/focus_row.js
index 6022f3993d9d944bbd9c1210b4703f162145f071..2343422125740a3092cd3910614ab9929db8643e 100644
--- a/chrome/browser/resources/extensions/focus_row.js
+++ b/chrome/browser/resources/extensions/focus_row.js
@@ -21,7 +21,8 @@ cr.define('extensions', function() {
cr.ui.FocusRow.prototype.makeActive.call(this, active);
// Only highlight if the row has focus.
- this.root.classList.toggle('extension-highlight',
+ this.root.classList.toggle(
+ 'extension-highlight',
active && this.root.contains(document.activeElement));
},
};

Powered by Google App Engine
This is Rietveld 408576698