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

Issue 686393002: Add isGenericFileHandler property to FileTask. (Closed)

Created:
6 years, 1 month ago by yawano
Modified:
6 years, 1 month ago
Reviewers:
benwells, satorux1, fukino
CC:
chromium-reviews, extensions-reviews_chromium.org, nkostylev+watch_chromium.org, 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, hirono
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add isGenericFileHandler property to FileTask. We are going to use this property from the JS side to know whether a task is generated from generic file handler or not. Generic file handler is a file handler which can handle any type of file. e.g. These are generic handlers. "types": ["*/*"] "types": ["*"] "types": ["*/*", "image/jpeg"] "extensions": ["*"] "extensions": ["*", "jpg"] These are not generic handlers. "types": ["image/jpeg"] "types": ["image/*"] "extensions": ["jpg"] "extensions": ["jpg", "png"] BUG=414566 TEST=out/Release/unit_tests --gtest_filter=FileManagerFileTasksTest.IsGenericFileHandler:FileManagerFileTasksComplexTest.FindFileHandlerTask_Generic Committed: https://crrev.com/16fc34a9145b3f4f79cb4146bc7716ac4290d7d6 Cr-Commit-Position: refs/heads/master@{#302557}

Patch Set 1 #

Patch Set 2 : Added test pattern. #

Total comments: 2

Patch Set 3 : Fixed comment. #

Total comments: 6

Patch Set 4 : Added unitteset for IsGenericFileHandler. #

Total comments: 2

Patch Set 5 : Added comment to idl file. #

Patch Set 6 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -14 lines) Patch
M chrome/browser/chromeos/extensions/file_manager/private_api_tasks.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.h View 1 2 3 4 chunks +16 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks.cc View 1 2 3 4 5 6 chunks +31 lines, -7 lines 0 comments Download
M chrome/browser/chromeos/file_manager/file_tasks_unittest.cc View 1 2 3 6 chunks +199 lines, -5 lines 0 comments Download
M chrome/common/extensions/api/file_manager_private.idl View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (6 generated)
yawano
PTAL. Thanks!
6 years, 1 month ago (2014-10-30 07:34:15 UTC) #2
fukino
Basically lgtm with a nit, but please have this reviewed by an owner of the ...
6 years, 1 month ago (2014-10-30 07:56:33 UTC) #3
yawano
Thank you for the review. I fixed the comment. https://codereview.chromium.org/686393002/diff/20001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): https://codereview.chromium.org/686393002/diff/20001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode404 chrome/browser/chromeos/file_manager/file_tasks.cc:404: ...
6 years, 1 month ago (2014-10-30 08:06:18 UTC) #4
yawano
@satorux: PTAL this CL? Thanks!
6 years, 1 month ago (2014-10-30 08:10:26 UTC) #6
satorux1
https://codereview.chromium.org/686393002/diff/40001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): https://codereview.chromium.org/686393002/diff/40001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode130 chrome/browser/chromeos/file_manager/file_tasks.cc:130: bool IsGenericFileHandler(const extensions::FileHandlerInfo& fileHandlerInfo) { file_handler_info http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Variable_Names https://codereview.chromium.org/686393002/diff/40001/chrome/browser/chromeos/file_manager/file_tasks.cc#newcode134 chrome/browser/chromeos/file_manager/file_tasks.cc:134: ...
6 years, 1 month ago (2014-10-30 08:17:21 UTC) #7
yawano
Thank you for the review. Added a unittest for IsGenericFileHandler. PTAL. https://codereview.chromium.org/686393002/diff/40001/chrome/browser/chromeos/file_manager/file_tasks.cc File chrome/browser/chromeos/file_manager/file_tasks.cc (right): ...
6 years, 1 month ago (2014-10-31 01:26:30 UTC) #8
satorux1
lgtm
6 years, 1 month ago (2014-10-31 05:57:33 UTC) #9
yawano
@benwells: PTAL this CL? Thank you!
6 years, 1 month ago (2014-10-31 06:00:21 UTC) #11
satorux1
https://codereview.chromium.org/686393002/diff/60001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/686393002/diff/60001/chrome/common/extensions/api/file_manager_private.idl#newcode171 chrome/common/extensions/api/file_manager_private.idl:171: // True if this task is from generic file ...
6 years, 1 month ago (2014-10-31 06:02:55 UTC) #12
yawano
Thanks! https://codereview.chromium.org/686393002/diff/60001/chrome/common/extensions/api/file_manager_private.idl File chrome/common/extensions/api/file_manager_private.idl (right): https://codereview.chromium.org/686393002/diff/60001/chrome/common/extensions/api/file_manager_private.idl#newcode171 chrome/common/extensions/api/file_manager_private.idl:171: // True if this task is from generic ...
6 years, 1 month ago (2014-10-31 07:04:51 UTC) #13
benwells
lgtm
6 years, 1 month ago (2014-11-03 00:13:58 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686393002/80001
6 years, 1 month ago (2014-11-03 23:50:02 UTC) #16
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/87493) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/77154) android_aosp ...
6 years, 1 month ago (2014-11-03 23:55:02 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686393002/100001
6 years, 1 month ago (2014-11-04 01:49:20 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
6 years, 1 month ago (2014-11-04 02:49:41 UTC) #21
commit-bot: I haz the power
6 years, 1 month ago (2014-11-04 02:50:27 UTC) #22
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/16fc34a9145b3f4f79cb4146bc7716ac4290d7d6
Cr-Commit-Position: refs/heads/master@{#302557}

Powered by Google App Engine
This is Rietveld 408576698