| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 /** | 5 /** |
| 6 * Wrapper for chrome.send. | 6 * Wrapper for chrome.send. |
| 7 */ | 7 */ |
| 8 function chromeSend(func, arg) { | 8 function chromeSend(func, arg) { |
| 9 if (arg == undefined) | 9 if (arg == undefined) |
| 10 arg = ''; | 10 arg = ''; |
| (...skipping 660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 671 update: function(result) { | 671 update: function(result) { |
| 672 var row = this.getRow(result.file_path); | 672 var row = this.getRow(result.file_path); |
| 673 if (!row && !DiscardResult(result)) | 673 if (!row && !DiscardResult(result)) |
| 674 row = new DownloadRow(this, result); | 674 row = new DownloadRow(this, result); |
| 675 | 675 |
| 676 row && row.update(result); | 676 row && row.update(result); |
| 677 }, | 677 }, |
| 678 }; | 678 }; |
| 679 | 679 |
| 680 document.addEventListener('DOMContentLoaded', init); | 680 document.addEventListener('DOMContentLoaded', init); |
| OLD | NEW |