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

Issue 15624003: Validate image files before writing them to media galleries. (Closed)

Created:
7 years, 7 months ago by vandebo (ex-Chrome)
Modified:
7 years, 6 months ago
CC:
chromium-reviews, tzik+watch_chromium.org, jam, joi+watch-content_chromium.org, Aaron Boodman, darin-cc_chromium.org, chromium-apps-reviews_chromium.org, kinuko+watch
Visibility:
Public.

Description

Validate image files before writing them to media galleries. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203038

Patch Set 1 #

Total comments: 46

Patch Set 2 : Address comments and rebase #

Total comments: 22

Patch Set 3 : Rebase, address comments, unit test. #

Total comments: 26

Patch Set 4 : Address comments #

Patch Set 5 : Override #

Unified diffs Side-by-side diffs Delta from patch set Stats (+550 lines, -2 lines) Patch
M chrome/browser/media_galleries/OWNERS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
A chrome/browser/media_galleries/fileapi/media_file_validator_factory.h View 1 2 1 chunk +40 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc View 1 2 3 4 1 chunk +51 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/media_file_validator_unittest.cc View 1 2 3 1 chunk +228 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/supported_image_type_validator.h View 1 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/supported_image_type_validator.cc View 1 2 3 1 chunk +156 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/browser/fileapi/mock_file_system_context.h View 1 2 2 chunks +9 lines, -0 lines 0 comments Download
M webkit/browser/fileapi/mock_file_system_context.cc View 1 2 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
vandebo (ex-Chrome)
Still working on the unit test, but we can start the review.
7 years, 7 months ago (2013-05-21 23:17:46 UTC) #1
Greg Billock
https://codereview.chromium.org/15624003/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc File chrome/browser/extensions/api/media_galleries/media_galleries_api.cc (right): https://codereview.chromium.org/15624003/diff/1/chrome/browser/extensions/api/media_galleries/media_galleries_api.cc#newcode189 chrome/browser/extensions/api/media_galleries/media_galleries_api.cc:189: policy->GrantCreateFileForFileSystem(child_id, filesystems[i].fsid); whitespace. But does this need to get ...
7 years, 7 months ago (2013-05-22 16:21:58 UTC) #2
vandebo (ex-Chrome)
Still working on the unit test, but forgot to add the file in the last ...
7 years, 7 months ago (2013-05-22 18:41:16 UTC) #3
Greg Billock
https://codereview.chromium.org/15624003/diff/1/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc File chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc (right): https://codereview.chromium.org/15624003/diff/1/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc#newcode23 chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc:23: virtual void StartValidation( On 2013/05/22 18:41:17, vandebo wrote: > ...
7 years, 7 months ago (2013-05-23 18:18:29 UTC) #4
vandebo (ex-Chrome)
https://codereview.chromium.org/15624003/diff/1/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc File chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc (right): https://codereview.chromium.org/15624003/diff/1/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc#newcode23 chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc:23: virtual void StartValidation( On 2013/05/23 18:18:29, Greg Billock wrote: ...
7 years, 7 months ago (2013-05-24 01:13:05 UTC) #5
vandebo (ex-Chrome)
+thestig, Greg is out on vacation for a day or two, can you take a ...
7 years, 7 months ago (2013-05-24 15:39:37 UTC) #6
Lei Zhang
Still looking... https://codereview.chromium.org/15624003/diff/11001/content/content_tests.gypi File content/content_tests.gypi (right): https://codereview.chromium.org/15624003/diff/11001/content/content_tests.gypi#newcode473 content/content_tests.gypi:473: '../webkit/fileapi/copy_or_move_file_validator_unittest.cc', file doesn't exist? https://codereview.chromium.org/15624003/diff/11001/webkit/browser/fileapi/copy_or_move_file_validator.h File webkit/browser/fileapi/copy_or_move_file_validator.h ...
7 years, 7 months ago (2013-05-24 22:50:44 UTC) #7
Lei Zhang
https://codereview.chromium.org/15624003/diff/11001/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc File chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc (right): https://codereview.chromium.org/15624003/diff/11001/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc#newcode10 chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc:10: #include "content/public/browser/browser_thread.h" not used? ditto with line 14. https://codereview.chromium.org/15624003/diff/11001/chrome/browser/media_galleries/fileapi/media_file_validator_factory.h ...
7 years, 7 months ago (2013-05-25 00:09:00 UTC) #8
vandebo (ex-Chrome)
+kinuko for webkit/ changes. https://codereview.chromium.org/15624003/diff/11001/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc File chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc (right): https://codereview.chromium.org/15624003/diff/11001/chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc#newcode10 chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc:10: #include "content/public/browser/browser_thread.h" On 2013/05/25 00:09:01, ...
7 years, 6 months ago (2013-05-29 06:09:15 UTC) #9
kinuko
webkit/ lgtm
7 years, 6 months ago (2013-05-29 06:12:13 UTC) #10
Lei Zhang
https://codereview.chromium.org/15624003/diff/29001/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc File chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc (right): https://codereview.chromium.org/15624003/diff/29001/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc#newcode140 chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc:140: NOTREACHED(); This method is gone now. (Just landed) https://codereview.chromium.org/15624003/diff/29001/chrome/browser/media_galleries/fileapi/media_file_validator_unittest.cc ...
7 years, 6 months ago (2013-05-29 09:40:58 UTC) #11
vandebo (ex-Chrome)
Address comments
7 years, 6 months ago (2013-05-29 18:50:44 UTC) #12
vandebo (ex-Chrome)
https://codereview.chromium.org/15624003/diff/29001/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc File chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc (right): https://codereview.chromium.org/15624003/diff/29001/chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc#newcode140 chrome/browser/media_galleries/fileapi/media_file_system_mount_point_provider.cc:140: NOTREACHED(); On 2013/05/29 09:40:58, Lei Zhang wrote: > This ...
7 years, 6 months ago (2013-05-29 18:56:05 UTC) #13
vandebo (ex-Chrome)
Override
7 years, 6 months ago (2013-05-29 19:01:59 UTC) #14
Lei Zhang
lgtm
7 years, 6 months ago (2013-05-29 20:12:41 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/15624003/40002
7 years, 6 months ago (2013-05-29 20:24:51 UTC) #16
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 03:24:47 UTC) #17
Message was sent while issue was closed.
Change committed as 203038

Powered by Google App Engine
This is Rietveld 408576698