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

Unified Diff: ui/file_manager/gallery/js/gallery.js

Issue 282303006: Gallery.app: Fix the task list of the separated version of Gallery. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months 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 | « no previous file | ui/file_manager/gallery/manifest.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/file_manager/gallery/js/gallery.js
diff --git a/ui/file_manager/gallery/js/gallery.js b/ui/file_manager/gallery/js/gallery.js
index 2a65793c27becdbcfbd25a82a535bdf790700bd9..5448586d846752fc8b84c778e72f16035f45e5a6 100644
--- a/ui/file_manager/gallery/js/gallery.js
+++ b/ui/file_manager/gallery/js/gallery.js
@@ -820,7 +820,13 @@ Gallery.prototype.updateShareMenu_ = function() {
for (var t = 0; t !== tasks.length; t++) {
var task = tasks[t];
- if (!isShareAction(task)) continue;
+ if (!isShareAction(task))
+ continue;
+ // Filter out Files.app tasks.
+ // TODO(hirono): Remove the hack after the files.app's handlers are
+ // removed.
+ if (task.taskId.indexOf('hhaomjibdihmijegdhdafkllkbggdgoj|') === 0)
+ continue;
var item = util.createChild(this.shareMenu_, 'item');
item.textContent = task.title;
« no previous file with comments | « no previous file | ui/file_manager/gallery/manifest.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698