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

Issue 300063006: Files.app: Let Files.app pass mutliple files to file handlers. (Closed)

Created:
6 years, 6 months ago by hirono
Modified:
6 years, 6 months ago
Reviewers:
benwells, kinaba
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, yoshiki+watch_chromium.org, rginda+watch_chromium.org, oshima+watch_chromium.org, chromium-apps-reviews_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Visibility:
Public.

Description

Files.app: Let Files.app pass mutliple files to file handlers. Previously if multiple files are selected for launching a file handler, Files.app sends multiple launch events for each file. But according to the specification of the launch event, we can put multiple entries in a single launch event. This CL lets Files.app follow the specificaiton. BUG=358694 TEST=manually R=benwells@chromium.org, kinaba@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=274755

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed. #

Patch Set 3 : Rebased. #

Total comments: 8

Patch Set 4 : Rebased. #

Patch Set 5 : Fixed. #

Total comments: 15

Patch Set 6 : Fixed. #

Total comments: 2

Patch Set 7 : Fixed. #

Patch Set 8 : Add a test. #

Patch Set 9 : Add a test for mixed entries. #

Total comments: 3

Patch Set 10 : Fixed #

Unified diffs Side-by-side diffs Delta from patch set Stats (+464 lines, -114 lines) Patch
M apps/browser/api/app_runtime/app_runtime_api.h View 2 chunks +5 lines, -4 lines 0 comments Download
M apps/browser/api/app_runtime/app_runtime_api.cc View 1 chunk +12 lines, -9 lines 0 comments Download
M apps/launcher.h View 1 2 3 4 2 chunks +7 lines, -5 lines 0 comments Download
M apps/launcher.cc View 1 2 3 4 5 6 7 8 9 7 chunks +162 lines, -83 lines 0 comments Download
M chrome/browser/chromeos/file_manager/external_filesystem_apitest.cc View 1 2 3 4 5 6 7 8 2 chunks +84 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.cc View 1 2 3 1 chunk +4 lines, -3 lines 0 comments Download
A + chrome/test/data/extensions/api_test/file_browser/app_file_handler_multi/manifest.json View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -10 lines 0 comments Download
A chrome/test/data/extensions/api_test/file_browser/app_file_handler_multi/test.js View 1 2 3 4 5 6 7 8 9 1 chunk +183 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (0 generated)
hirono
PTAL the CL? Thank you!
6 years, 6 months ago (2014-05-27 05:29:07 UTC) #1
kinaba
Please rebase over https://codereview.chromium.org/294163010/ that'll be landing soon :). https://codereview.chromium.org/300063006/diff/1/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/1/apps/launcher.cc#newcode208 apps/launcher.cc:208: ...
6 years, 6 months ago (2014-05-27 07:08:26 UTC) #2
hirono
Thank you! https://codereview.chromium.org/300063006/diff/1/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/1/apps/launcher.cc#newcode208 apps/launcher.cc:208: if (!base::PathExists(file_paths_[0]) || On 2014/05/27 07:08:26, kinaba ...
6 years, 6 months ago (2014-05-28 02:23:27 UTC) #3
kinaba
lgtm
6 years, 6 months ago (2014-05-28 03:19:29 UTC) #4
hirono
@benwells - PTAL apps directory? Thank you!
6 years, 6 months ago (2014-05-28 04:13:21 UTC) #5
benwells
https://codereview.chromium.org/300063006/diff/40001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/40001/apps/launcher.cc#newcode163 apps/launcher.cc:163: file_paths_.erase(it); should this be it = file_path_.erase(it)? I'd be ...
6 years, 6 months ago (2014-05-28 22:46:13 UTC) #6
hirono
Thank you! https://codereview.chromium.org/300063006/diff/40001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/40001/apps/launcher.cc#newcode163 apps/launcher.cc:163: file_paths_.erase(it); On 2014/05/28 22:46:14, benwells wrote: > ...
6 years, 6 months ago (2014-05-29 04:08:03 UTC) #7
benwells
https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc#newcode179 apps/launcher.cc:179: StepToFillMimeTypes(); Sorry to be so nitpicky. I'm finding this ...
6 years, 6 months ago (2014-05-30 00:59:34 UTC) #8
hirono
https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc#newcode179 apps/launcher.cc:179: StepToFillMimeTypes(); On 2014/05/30 00:59:35, benwells wrote: > Sorry to ...
6 years, 6 months ago (2014-05-30 02:53:43 UTC) #9
benwells
Can we get some tests for this change? https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc#newcode179 apps/launcher.cc:179: StepToFillMimeTypes(); ...
6 years, 6 months ago (2014-05-30 06:33:56 UTC) #10
hirono
Thank you! https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/80001/apps/launcher.cc#newcode179 apps/launcher.cc:179: StepToFillMimeTypes(); On 2014/05/30 06:33:57, benwells wrote: > ...
6 years, 6 months ago (2014-06-02 03:33:25 UTC) #11
benwells
I think this needs tests. https://codereview.chromium.org/300063006/diff/120001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/120001/apps/launcher.cc#newcode211 apps/launcher.cc:211: if (!any_native_files) { Shouldn't ...
6 years, 6 months ago (2014-06-02 23:11:29 UTC) #12
hirono
Sorry, I missed about the test. Could you take another look? Thank you. https://codereview.chromium.org/300063006/diff/120001/apps/launcher.cc File ...
6 years, 6 months ago (2014-06-03 06:42:14 UTC) #13
benwells
On 2014/06/03 06:42:14, hirono wrote: > Sorry, I missed about the test. Could you take ...
6 years, 6 months ago (2014-06-03 07:40:05 UTC) #14
hirono
@benwells - I added a test for mixed entries. @kinaba - Please take another look ...
6 years, 6 months ago (2014-06-03 09:32:30 UTC) #15
benwells
Thanks for bearing with me! apps/ lgtm++
6 years, 6 months ago (2014-06-04 00:58:24 UTC) #16
kinaba
lgtm for the tests, but one thing https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc#newcode182 apps/launcher.cc:182: GetMimeTypesAndLaunch(); PostTask(FILE) ...
6 years, 6 months ago (2014-06-04 02:29:59 UTC) #17
benwells
https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc#newcode182 apps/launcher.cc:182: GetMimeTypesAndLaunch(); On 2014/06/04 02:29:59, kinaba wrote: > PostTask(FILE) is ...
6 years, 6 months ago (2014-06-04 02:55:38 UTC) #18
hirono
https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc File apps/launcher.cc (right): https://codereview.chromium.org/300063006/diff/190001/apps/launcher.cc#newcode182 apps/launcher.cc:182: GetMimeTypesAndLaunch(); On 2014/06/04 02:55:38, benwells wrote: > On 2014/06/04 ...
6 years, 6 months ago (2014-06-04 04:02:23 UTC) #19
kinaba
lgtm
6 years, 6 months ago (2014-06-04 04:04:50 UTC) #20
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 6 months ago (2014-06-04 04:06:03 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/300063006/200001
6 years, 6 months ago (2014-06-04 04:06:41 UTC) #22
hirono
The CQ bit was unchecked by hirono@chromium.org
6 years, 6 months ago (2014-06-04 09:25:53 UTC) #23
hirono
The CQ bit was checked by hirono@chromium.org
6 years, 6 months ago (2014-06-04 09:25:54 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hirono@chromium.org/300063006/200001
6 years, 6 months ago (2014-06-04 09:26:44 UTC) #25
hirono
6 years, 6 months ago (2014-06-04 09:41:13 UTC) #26
Message was sent while issue was closed.
Committed patchset #10 manually as r274755 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698