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

Issue 173853007: Media Galleries: Prune uninteresting folders when scanning. (Closed)

Created:
6 years, 10 months ago by Lei Zhang
Modified:
6 years, 10 months ago
CC:
chromium-reviews, extensions-reviews_chromium.org, tzik, nhiroki, tommycli, Greg Billock, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Media Galleries: Prune uninteresting folders when scanning. Also remove sensitive directories from scan results. BUG=161119 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=253618

Patch Set 1 : #

Total comments: 10

Patch Set 2 : add tests, fix bugs #

Total comments: 3

Patch Set 3 : rebase #

Patch Set 4 : fix mac, do path checking with absolute paths #

Patch Set 5 : exclude redundent dirs on mac #

Patch Set 6 : fix win #

Patch Set 7 : fix win part 2 #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+346 lines, -66 lines) Patch
M chrome/browser/extensions/api/file_system/file_system_api.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/file_system/file_system_api.cc View 1 2 3 4 5 6 7 1 chunk +10 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_folder_finder.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/media_folder_finder.cc View 1 2 3 4 5 6 7 9 chunks +108 lines, -6 lines 0 comments Download
M chrome/browser/media_galleries/media_folder_finder_unittest.cc View 1 2 3 4 5 6 7 3 chunks +70 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/media_scan_manager.cc View 1 2 3 4 5 6 7 4 chunks +30 lines, -10 lines 0 comments Download
M chrome/browser/media_galleries/media_scan_manager_unittest.cc View 1 2 3 4 5 6 7 17 chunks +85 lines, -45 lines 0 comments Download
M chrome/common/chrome_paths.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths.cc View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_internal.h View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/chrome_paths_mac.mm View 1 2 3 4 5 6 7 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 32 (0 generated)
Lei Zhang
WIP, let me know what you think.
6 years, 10 months ago (2014-02-20 22:14:56 UTC) #1
vandebo (ex-Chrome)
upload failed.
6 years, 10 months ago (2014-02-20 22:15:48 UTC) #2
vandebo (ex-Chrome)
https://codereview.chromium.org/173853007/diff/170001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/173853007/diff/170001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode249 chrome/browser/extensions/api/file_system/file_system_api.cc:249: std::vector<base::FilePath> GetGrayListedDirectories() { It looks like FileSystemApi doesn't use ...
6 years, 10 months ago (2014-02-20 23:00:22 UTC) #3
Lei Zhang
https://codereview.chromium.org/173853007/diff/170001/chrome/browser/extensions/api/file_system/file_system_api.cc File chrome/browser/extensions/api/file_system/file_system_api.cc (right): https://codereview.chromium.org/173853007/diff/170001/chrome/browser/extensions/api/file_system/file_system_api.cc#newcode249 chrome/browser/extensions/api/file_system/file_system_api.cc:249: std::vector<base::FilePath> GetGrayListedDirectories() { On 2014/02/20 23:00:23, vandebo wrote: > ...
6 years, 10 months ago (2014-02-20 23:04:51 UTC) #4
Lei Zhang
https://codereview.chromium.org/173853007/diff/170001/chrome/browser/media_galleries/media_folder_finder.h File chrome/browser/media_galleries/media_folder_finder.h (right): https://codereview.chromium.org/173853007/diff/170001/chrome/browser/media_galleries/media_folder_finder.h#newcode32 chrome/browser/media_galleries/media_folder_finder.h:32: const std::vector<base::FilePath>& /*sensitive_locations*/)> On 2014/02/20 23:00:23, vandebo wrote: > ...
6 years, 10 months ago (2014-02-25 01:24:24 UTC) #5
vandebo (ex-Chrome)
LGTM https://codereview.chromium.org/173853007/diff/290001/chrome/browser/media_galleries/media_scan_manager.cc File chrome/browser/media_galleries/media_scan_manager.cc (right): https://codereview.chromium.org/173853007/diff/290001/chrome/browser/media_galleries/media_scan_manager.cc#newcode231 chrome/browser/media_galleries/media_scan_manager.cc:231: continue; nit: shouldn't this be a break?
6 years, 10 months ago (2014-02-25 05:06:55 UTC) #6
Lei Zhang
sammc: chrome/browser/extensions/api/file_system/file_system_api.* mark: DIR_USER_LIBRARY ok in chrome/common/chrome_paths.h ?
6 years, 10 months ago (2014-02-25 05:46:19 UTC) #7
Lei Zhang
+mark for reals
6 years, 10 months ago (2014-02-25 05:46:37 UTC) #8
Mark Mentovai
Can you explain more about what you’re trying to do? https://codereview.chromium.org/173853007/diff/290001/chrome/common/chrome_paths.cc File chrome/common/chrome_paths.cc (right): https://codereview.chromium.org/173853007/diff/290001/chrome/common/chrome_paths.cc#newcode463 ...
6 years, 10 months ago (2014-02-25 14:02:48 UTC) #9
Lei Zhang
On 2014/02/25 14:02:48, Mark Mentovai wrote: > Can you explain more about what you’re trying ...
6 years, 10 months ago (2014-02-25 19:00:59 UTC) #10
Mark Mentovai
I don’t think you want to scan anything outside of the user’s home directory at ...
6 years, 10 months ago (2014-02-25 19:01:33 UTC) #11
Lei Zhang
On 2014/02/25 19:01:33, Mark Mentovai wrote: > I don’t think you want to scan anything ...
6 years, 10 months ago (2014-02-25 19:15:45 UTC) #12
Mark Mentovai
I thought you were scanning the entire disk. I got thrown off by seeing DIR_TEMP ...
6 years, 10 months ago (2014-02-25 19:50:53 UTC) #13
Lei Zhang
On 2014/02/25 19:50:53, Mark Mentovai wrote: > I thought you were scanning the entire disk. ...
6 years, 10 months ago (2014-02-25 22:03:56 UTC) #14
Sam McNally
chrome/browser/extensions/api/file_system/file_system_api.* lgtm
6 years, 10 months ago (2014-02-25 22:31:50 UTC) #15
Mark Mentovai
thestig@chromium.org wrote: > I'm scanning DIR_HOME and any other mounted volumes except for the volume ...
6 years, 10 months ago (2014-02-26 00:58:46 UTC) #16
Lei Zhang
Mac changes / test fixes in patch set 4. https://codereview.chromium.org/173853007/diff/290001/chrome/browser/media_galleries/media_scan_manager.cc File chrome/browser/media_galleries/media_scan_manager.cc (right): https://codereview.chromium.org/173853007/diff/290001/chrome/browser/media_galleries/media_scan_manager.cc#newcode231 chrome/browser/media_galleries/media_scan_manager.cc:231: ...
6 years, 10 months ago (2014-02-26 00:58:53 UTC) #17
Mark Mentovai
Mac LGTM as of three minutes ago (although I’d still take out DIR_CACHE and DIR_TEMP, ...
6 years, 10 months ago (2014-02-26 01:00:50 UTC) #18
Lei Zhang
On 2014/02/26 01:00:50, Mark Mentovai wrote: > Mac LGTM as of three minutes ago (although ...
6 years, 10 months ago (2014-02-26 01:24:36 UTC) #19
Mark Mentovai
LGTM
6 years, 10 months ago (2014-02-26 03:40:37 UTC) #20
Mark Mentovai
(Have a nice vacation!)
6 years, 10 months ago (2014-02-26 03:40:47 UTC) #21
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 10 months ago (2014-02-26 07:04:25 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/173853007/390001
6 years, 10 months ago (2014-02-26 07:06:30 UTC) #23
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 08:12:03 UTC) #24
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=270321
6 years, 10 months ago (2014-02-26 08:12:05 UTC) #25
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 10 months ago (2014-02-26 09:02:23 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/173853007/410001
6 years, 10 months ago (2014-02-26 09:02:36 UTC) #27
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-26 09:59:00 UTC) #28
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=270349
6 years, 10 months ago (2014-02-26 09:59:02 UTC) #29
Lei Zhang
The CQ bit was checked by thestig@chromium.org
6 years, 10 months ago (2014-02-26 18:54:42 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/thestig@chromium.org/173853007/450001
6 years, 10 months ago (2014-02-26 18:55:19 UTC) #31
commit-bot: I haz the power
6 years, 10 months ago (2014-02-26 23:11:51 UTC) #32
Message was sent while issue was closed.
Change committed as 253618

Powered by Google App Engine
This is Rietveld 408576698