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

Issue 2892173003: Add recursive pattern matching for subfolders in file_enumerator. (Closed)

Created:
3 years, 7 months ago by ivafanas
Modified:
3 years, 5 months ago
CC:
chromium-reviews, danakj+watch_chromium.org, vmpstr+watch_chromium.org, pennymac, scottmg
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Add recursive pattern matching for subfolders in file_enumerator. FolderSearchPolicy parameter is added to FileEnumerator class. MATCH_ONLY policy is default and refers to the current behaviour where the pattern only mathces the contents of root_path, not files in recursive subdirectories. ALL policy is the new fixed behaviour. It matches pattern to all subdirecroties. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.win:win10_chromium_x64_rel_ng Review-Url: https://codereview.chromium.org/2892173003 Cr-Commit-Position: refs/heads/master@{#483920} Committed: https://chromium.googlesource.com/chromium/src/+/829f2e0b37d0175ac65aee0cbc9a603fcc994db7

Patch Set 1 #

Total comments: 20

Patch Set 2 : Add recursive pattern matching for subfolders in file_enumerator #

Total comments: 16

Patch Set 3 : Add recursive pattern matching for subfolders in file_enumerator #

Total comments: 20

Patch Set 4 : Add recursive pattern matching for subfolders in file_enumerator #

Total comments: 2

Patch Set 5 : Add recursive pattern matching for subfolders in file_enumerator #

Unified diffs Side-by-side diffs Delta from patch set Stats (+521 lines, -137 lines) Patch
M base/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/files/file_enumerator.h View 1 2 3 4 chunks +26 lines, -14 lines 0 comments Download
M base/files/file_enumerator.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M base/files/file_enumerator_posix.cc View 1 2 3 4 5 chunks +90 lines, -71 lines 0 comments Download
A base/files/file_enumerator_unittest.cc View 1 2 3 1 chunk +312 lines, -0 lines 0 comments Download
M base/files/file_enumerator_win.cc View 1 2 3 5 chunks +86 lines, -52 lines 0 comments Download
M chrome_elf/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 64 (36 generated)
ivafanas
3 years, 7 months ago (2017-05-19 11:16:54 UTC) #1
ivafanas1
Patch fixes TODO message in base::FileEnumerator: // NOTE: the pattern only matches the contents of ...
3 years, 7 months ago (2017-05-19 11:27:50 UTC) #3
Mark Mentovai
https://codereview.chromium.org/2892173003/diff/1/base/BUILD.gn File base/BUILD.gn (right): https://codereview.chromium.org/2892173003/diff/1/base/BUILD.gn#newcode1 base/BUILD.gn:1: # Copyright (c) 2013 The Chromium Authors. All rights ...
3 years, 7 months ago (2017-05-19 17:16:12 UTC) #4
ivafanas
Fix code review notes https://codereview.chromium.org/2892173003/diff/1/base/files/file_enumerator.cc File base/files/file_enumerator.cc (right): https://codereview.chromium.org/2892173003/diff/1/base/files/file_enumerator.cc#newcode22 base/files/file_enumerator.cc:22: return (is_dir && (file_type_ & ...
3 years, 7 months ago (2017-05-22 04:42:28 UTC) #5
ivafanas
Hi, Mark, Do you have any comments?
3 years, 7 months ago (2017-05-25 03:13:17 UTC) #12
ivafanas
On 2017/05/25 03:13:17, ivafanas wrote: > Hi, Mark, > > Do you have any comments? ...
3 years, 6 months ago (2017-05-31 09:13:41 UTC) #14
Lei Zhang
Question - where are we going with this? Do you have plans to use the ...
3 years, 6 months ago (2017-06-01 00:01:27 UTC) #15
Lei Zhang
To answer my own question - Nevermind, I didn't read the previous comments carefully enough. ...
3 years, 6 months ago (2017-06-01 01:37:29 UTC) #16
ivafanas
Codereview notes were fixed. Thanks. https://codereview.chromium.org/2892173003/diff/20001/base/files/file_enumerator.h File base/files/file_enumerator.h (right): https://codereview.chromium.org/2892173003/diff/20001/base/files/file_enumerator.h#newcode142 base/files/file_enumerator.h:142: bool IsTypeMatched(bool is_dir); On ...
3 years, 6 months ago (2017-06-01 08:29:19 UTC) #21
ivafanas
On 2017/06/01 08:29:19, ivafanas wrote: > Codereview notes were fixed. > > .... Hi, Lei ...
3 years, 6 months ago (2017-06-07 06:42:43 UTC) #22
Lei Zhang
On 2017/06/07 06:42:43, ivafanas wrote: > On 2017/06/01 08:29:19, ivafanas wrote: > > Codereview notes ...
3 years, 6 months ago (2017-06-08 07:28:59 UTC) #23
Lei Zhang
On 2017/06/08 07:28:59, Lei Zhang wrote: > On 2017/06/07 06:42:43, ivafanas wrote: > > On ...
3 years, 6 months ago (2017-06-08 07:35:43 UTC) #24
ivafanas
On 2017/06/08 07:35:43, Lei Zhang wrote: > On 2017/06/08 07:28:59, Lei Zhang wrote: > > ...
3 years, 6 months ago (2017-06-08 07:37:53 UTC) #25
Lei Zhang
Someone else already fixed the Win7 check in base/files/file_enumerator_win.cc because I'm too slow at reviewing. ...
3 years, 6 months ago (2017-06-08 08:21:19 UTC) #26
ivafanas
Post-review fixes. Thanks a lot for the notes. https://codereview.chromium.org/2892173003/diff/40001/base/files/file_enumerator.h File base/files/file_enumerator.h (right): https://codereview.chromium.org/2892173003/diff/40001/base/files/file_enumerator.h#newcode163 base/files/file_enumerator.h:163: FolderSearchPolicy ...
3 years, 6 months ago (2017-06-16 11:13:16 UTC) #28
Lei Zhang
lgtm +robertshield for chrome_elf/ I also did some light editing on the CL description.
3 years, 5 months ago (2017-06-29 05:03:23 UTC) #38
robertshield
Can you check that ChromeElfSanityCheck runs correctly in a Release build on Windows? A quick ...
3 years, 5 months ago (2017-06-29 05:33:24 UTC) #41
scottmg
(I don't really know why chrome_elf needs FileEnumerator off the top of my head, any ...
3 years, 5 months ago (2017-06-29 23:44:21 UTC) #43
ivafanas
On 2017/06/29 05:33:24, robertshield wrote: > Can you check that ChromeElfSanityCheck runs correctly in a ...
3 years, 5 months ago (2017-06-30 04:55:54 UTC) #44
ivafanas
readdir_r->readdir and the ".." case for OS_FUCHSIA is maintained after rebase. https://codereview.chromium.org/2892173003/diff/60001/base/files/file_enumerator_posix.cc File base/files/file_enumerator_posix.cc (right): ...
3 years, 5 months ago (2017-06-30 04:57:53 UTC) #45
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2892173003/80001
3 years, 5 months ago (2017-06-30 07:49:16 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/478378)
3 years, 5 months ago (2017-06-30 07:56:18 UTC) #54
ivafanas
On 2017/06/30 07:56:18, commit-bot: I haz the power wrote: > Try jobs failed on following ...
3 years, 5 months ago (2017-06-30 08:06:57 UTC) #56
robertshield
On 2017/06/30 04:55:54, ivafanas wrote: > On 2017/06/29 05:33:24, robertshield wrote: > > Can you ...
3 years, 5 months ago (2017-06-30 14:11:31 UTC) #57
robertshield
LGTM in any case since the test passing means that release-mode chrome_elf.dll isn't affected. Also ...
3 years, 5 months ago (2017-06-30 14:16:53 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2892173003/80001
3 years, 5 months ago (2017-07-02 07:47:54 UTC) #60
ivafanas
On 2017/06/30 08:06:57, ivafanas wrote: > On 2017/06/30 07:56:18, commit-bot: I haz the power wrote: ...
3 years, 5 months ago (2017-07-02 08:44:14 UTC) #61
commit-bot: I haz the power
3 years, 5 months ago (2017-07-02 09:02:02 UTC) #64
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/829f2e0b37d0175ac65aee0cbc9a...

Powered by Google App Engine
This is Rietveld 408576698