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

Unified Diff: chrome/browser/chromeos/file_manager/arc_file_tasks.cc

Issue 2141373002: file_manager: Do not return ARC tasks if a directory is selected (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/file_manager/arc_file_tasks.cc
diff --git a/chrome/browser/chromeos/file_manager/arc_file_tasks.cc b/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
index e16e6e5a1149c76a5489b6138bb4af1f0c82f71f..2346734af741c6e909b2972c018a08c0f7d6e2df 100644
--- a/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
+++ b/chrome/browser/chromeos/file_manager/arc_file_tasks.cc
@@ -296,6 +296,11 @@ void FindArcTasks(Profile* profile,
mojo::Array<arc::mojom::UrlWithMimeTypePtr> urls;
for (const extensions::EntryInfo& entry : entries) {
+ if (entry.is_directory) { // ARC apps don't support directories.
+ callback.Run(std::move(result_list));
+ return;
+ }
+
GURL url;
if (!ConvertToArcUrl(entry.path, &url)) {
callback.Run(std::move(result_list));
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698