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

Issue 839473006: Files.app: Fix notifications that are popping up after an import has completed. (Closed)

Created:
5 years, 11 months ago by Ben Kwa
Modified:
5 years, 11 months ago
Reviewers:
mtomasz, Steve McKay
CC:
chromium-reviews, tfarina, rginda+watch_chromium.org, mtomasz+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Files.app: Fix notifications that are popping up after a media import has completed. The ImportTask appears to be firing a final progress event after the success event has been fired; this is causing the UI to pop up a zombie import-related progress notification that never goes away. Fix by preventing the task from emitting further notifications once it's successfully completed. BUG=420680 Committed: https://crrev.com/bd10c079c8a1a2c5725be6c3461cc848130a0f8e Cr-Commit-Position: refs/heads/master@{#311498}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Reordering callbacks fixes the issue. #

Patch Set 3 : Sync with master. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -1 line) Patch
M ui/file_manager/file_manager/background/js/media_import_handler.js View 1 2 2 chunks +5 lines, -1 line 0 comments Download

Messages

Total messages: 14 (4 generated)
Ben Kwa
5 years, 11 months ago (2015-01-12 19:39:00 UTC) #2
Steve McKay
Boolean allergies aside, LGTM provided Hirono-san knows of no good alternatives. https://codereview.chromium.org/839473006/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): ...
5 years, 11 months ago (2015-01-12 21:52:10 UTC) #3
mtomasz
https://codereview.chromium.org/839473006/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): https://codereview.chromium.org/839473006/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode285 ui/file_manager/file_manager/background/js/media_import_handler.js:285: completionCallback(); Won't moving the completionCallback invocation after this.notify(PROGRESS) automagically ...
5 years, 11 months ago (2015-01-13 00:37:46 UTC) #4
Ben Kwa
https://codereview.chromium.org/839473006/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js File ui/file_manager/file_manager/background/js/media_import_handler.js (right): https://codereview.chromium.org/839473006/diff/1/ui/file_manager/file_manager/background/js/media_import_handler.js#newcode285 ui/file_manager/file_manager/background/js/media_import_handler.js:285: completionCallback(); On 2015/01/13 00:37:46, mtomasz wrote: > Won't moving ...
5 years, 11 months ago (2015-01-13 15:28:15 UTC) #5
mtomasz
lgtm
5 years, 11 months ago (2015-01-14 00:21:51 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839473006/20001
5 years, 11 months ago (2015-01-14 14:51:51 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_aosp/builds/48628) android_arm64_dbg_recipe on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_arm64_dbg_recipe/builds/37256) android_chromium_gn_compile_rel ...
5 years, 11 months ago (2015-01-14 14:54:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/839473006/40001
5 years, 11 months ago (2015-01-14 16:26:26 UTC) #12
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-14 17:20:14 UTC) #13
commit-bot: I haz the power
5 years, 11 months ago (2015-01-14 17:21:42 UTC) #14
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/bd10c079c8a1a2c5725be6c3461cc848130a0f8e
Cr-Commit-Position: refs/heads/master@{#311498}

Powered by Google App Engine
This is Rietveld 408576698