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

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

Issue 1513483008: MD Downloads: declare/initialize ActionService#searchTerms_ in ctor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@dl-data-limits
Patch Set: Created 5 years 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/action_service.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/md_downloads/crisper.js
diff --git a/chrome/browser/resources/md_downloads/crisper.js b/chrome/browser/resources/md_downloads/crisper.js
index c2babd5e2d133eebb712ec59af837f16b4d46472..2942fc6837e1b8c14acbcd38aed832bf6e6d4920 100644
--- a/chrome/browser/resources/md_downloads/crisper.js
+++ b/chrome/browser/resources/md_downloads/crisper.js
@@ -1529,7 +1529,10 @@ cr.define('downloads', function() {
}
/** @constructor */
- function ActionService() {}
+ function ActionService() {
+ /** @private {Array<string>} */
+ this.searchTerms_ = [];
+ }
/**
* @param {string} s
@@ -1553,9 +1556,6 @@ cr.define('downloads', function() {
};
ActionService.prototype = {
- /** @private {Array<string>} */
- searchTerms_: [],
-
/** @param {string} id ID of the download to cancel. */
cancel: chromeSendWithId('cancel'),
« no previous file with comments | « chrome/browser/resources/md_downloads/action_service.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698