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

Unified Diff: chrome/browser/resources/md_downloads/manager.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/md_downloads/manager.js
diff --git a/chrome/browser/resources/md_downloads/manager.js b/chrome/browser/resources/md_downloads/manager.js
index ec56d5154198fa614cdb1598b457f7f3a43e4a28..b3ebe46d975573b994e25e156dc2a6a783b2f181 100644
--- a/chrome/browser/resources/md_downloads/manager.js
+++ b/chrome/browser/resources/md_downloads/manager.js
@@ -29,7 +29,9 @@ cr.define('downloads', function() {
/** @private {!Array<!downloads.Data>} */
items_: {
type: Array,
- value: function() { return []; },
+ value: function() {
+ return [];
+ },
},
/** @private */
@@ -120,7 +122,7 @@ cr.define('downloads', function() {
* @private
*/
onCanExecute_: function(e) {
- e = /** @type {cr.ui.CanExecuteEvent} */(e);
+ e = /** @type {cr.ui.CanExecuteEvent} */ (e);
switch (e.command.id) {
case 'undo-command':
e.canExecute = this.$.toolbar.canUndo();
@@ -209,7 +211,7 @@ cr.define('downloads', function() {
updateItem_: function(index, data) {
this.set('items_.' + index, data);
this.updateHideDates_(index, index);
- var list = /** @type {!IronListElement} */(this.$['downloads-list']);
+ var list = /** @type {!IronListElement} */ (this.$['downloads-list']);
list.updateSizeForItem(index);
},
});
@@ -220,7 +222,7 @@ cr.define('downloads', function() {
/** @return {!downloads.Manager} */
Manager.get = function() {
- return /** @type {!downloads.Manager} */(
+ return /** @type {!downloads.Manager} */ (
queryRequiredElement('downloads-manager'));
};

Powered by Google App Engine
This is Rietveld 408576698