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

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

Issue 1923953005: Files app: Prepare all information necessary for Arc task execution. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « chrome/browser/chromeos/file_manager/file_tasks_unittest.cc ('k') | 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/open_util.cc
diff --git a/chrome/browser/chromeos/file_manager/open_util.cc b/chrome/browser/chromeos/file_manager/open_util.cc
index 81d7252120bbdf4ca9406a4d602a51672a34a87b..49f8a09dd399975d3b9db62aee687a0c16a72d90 100644
--- a/chrome/browser/chromeos/file_manager/open_util.cc
+++ b/chrome/browser/chromeos/file_manager/open_util.cc
@@ -77,11 +77,11 @@ void OpenFileMimeTypeAfterTasksListed(
Profile* profile,
const GURL& url,
const platform_util::OpenOperationCallback& callback,
- const std::vector<file_tasks::FullTaskDescriptor>& tasks) {
+ std::unique_ptr<std::vector<file_tasks::FullTaskDescriptor>> tasks) {
// Select a default handler. If a default handler is not available, select
// a non-generic file handler.
const file_tasks::FullTaskDescriptor* chosen_task = nullptr;
- for (const auto& task : tasks) {
+ for (const auto& task : *tasks) {
if (!task.is_generic_file_handler()) {
chosen_task = &task;
if (task.is_default())
« no previous file with comments | « chrome/browser/chromeos/file_manager/file_tasks_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698