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

Unified Diff: chrome/browser/resources/md_downloads/manager.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge 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
« no previous file with comments | « chrome/browser/resources/md_downloads/item.js ('k') | chrome/browser/resources/md_downloads/toolbar.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 743aacd19af0b0cbe9fcdc33e7b1f5e694e74580..4eed16b28a1d0d01b057b76e37c98a54fb6e0406 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 */
@@ -105,7 +107,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();
@@ -194,7 +196,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);
},
});
@@ -205,7 +207,7 @@ cr.define('downloads', function() {
/** @return {!downloads.Manager} */
Manager.get = function() {
- return /** @type {!downloads.Manager} */(
+ return /** @type {!downloads.Manager} */ (
queryRequiredElement('downloads-manager'));
};
« no previous file with comments | « chrome/browser/resources/md_downloads/item.js ('k') | chrome/browser/resources/md_downloads/toolbar.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698