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

Unified Diff: ui/file_manager/file_manager/foreground/js/task_controller.js

Issue 2513493002: Files App: Update the context menu when installed app is changed. (Closed)
Patch Set: Created 4 years, 1 month 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 | « third_party/closure_compiler/externs/file_manager_private.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/file_manager/foreground/js/task_controller.js
diff --git a/ui/file_manager/file_manager/foreground/js/task_controller.js b/ui/file_manager/file_manager/foreground/js/task_controller.js
index 0ecdef30c1d447eddbd794bb6a13be75b24b3638..ef05e202f1f92b5d0b4fcf0a14c031ee9bdc5233 100644
--- a/ui/file_manager/file_manager/foreground/js/task_controller.js
+++ b/ui/file_manager/file_manager/foreground/js/task_controller.js
@@ -98,6 +98,8 @@ function TaskController(
this.selectionHandler_.addEventListener(
FileSelectionHandler.EventType.CHANGE_THROTTLED,
this.onSelectionChangeThrottled_.bind(this));
+ chrome.fileManagerPrivate.onAppsUpdated.addListener(
+ this.onSelectionChangeThrottled_.bind(this));
fukino 2016/11/21 08:57:50 Direct wiring to onSelectionChangeThrottled_ looks
oka 2016/11/21 09:14:47 That's exactly what onSelectionChangeThrottled_ do
fukino 2016/11/21 09:27:29 sgtm
}
/**
« no previous file with comments | « third_party/closure_compiler/externs/file_manager_private.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698