| OLD | NEW |
| 1 // Copyright 2017 The Chromium OS Authors. All rights reserved. | 1 // Copyright 2017 The Chromium OS 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 window.onload = function() { | 5 window.onload = function() { |
| 6 chrome.runtime.getBackgroundPage(function(backgroundPage) { | 6 chrome.runtime.getBackgroundPage(function(backgroundPage) { |
| 7 | 7 |
| 8 // Called from the background page. We need to place this function here | 8 // Called from the background page. We need to place this function here |
| 9 // because chrome.fileSystem.chooseEntry only works on forground page. | 9 // because chrome.fileSystem.chooseEntry only works on forground page. |
| 10 backgroundPage.unpacker.Compressor.prototype.createArchiveFileForeground_ = | 10 backgroundPage.unpacker.Compressor.prototype.createArchiveFileForeground_ = |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 // Some compressors are waiting for this foreground page to be loaded. | 31 // Some compressors are waiting for this foreground page to be loaded. |
| 32 backgroundPage.unpacker.Compressor.CompressorIdQueue.forEach( | 32 backgroundPage.unpacker.Compressor.CompressorIdQueue.forEach( |
| 33 function(compressorId) { | 33 function(compressorId) { |
| 34 var compressor = | 34 var compressor = |
| 35 backgroundPage.unpacker.app.compressors[compressorId]; | 35 backgroundPage.unpacker.app.compressors[compressorId]; |
| 36 compressor.createArchiveFileForeground_(compressorId); | 36 compressor.createArchiveFileForeground_(compressorId); |
| 37 }); | 37 }); |
| 38 }); | 38 }); |
| 39 }; | 39 }; |
| OLD | NEW |