Commit 26acebd1 authored by hirono's avatar hirono Committed by Commit bot

Files.app: Fix typo in onUnload_ handler.

The type causes an exception and it prevent the app from running
progressCenter.removePanel.

So the disposed ProgressCenterPanel remains in the ProgressCenter and it causes
another bug.

BUG=418517
TEST=repo steps of the bug.

Review URL: https://codereview.chromium.org/618563002

Cr-Commit-Position: refs/heads/master@{#297353}
parent 6b6ed6be
...@@ -2832,9 +2832,9 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52; ...@@ -2832,9 +2832,9 @@ var BOTTOM_MARGIN_FOR_PREVIEW_PANEL_PX = 52;
if (this.volumeManager_) if (this.volumeManager_)
this.volumeManager_.dispose(); this.volumeManager_.dispose();
for (var i = 0; for (var i = 0;
i < this.fileTransferController_.pendingTaskId.length; i < this.fileTransferController_.pendingTaskIds.length;
i++) { i++) {
var taskId = this.fileTransferController_.pendingTaskId[i]; var taskId = this.fileTransferController_.pendingTaskIds[i];
var item = var item =
this.backgroundPage_.background.progressCenter.getItemById(taskId); this.backgroundPage_.background.progressCenter.getItemById(taskId);
item.message = ''; item.message = '';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment