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

Issue 20190002: Add a copy or move validator to that can handle support audio and video files. (Closed)

Created:
7 years, 5 months ago by vandebo (ex-Chrome)
Modified:
7 years, 4 months ago
Reviewers:
Lei Zhang, csharp
CC:
chromium-reviews, tzik+watch_chromium.org, tommycli, Greg Billock, kinuko+watch
Visibility:
Public.

Description

Add a copy or move validator to that can handle support audio and video files. The validator asks a utility process to open and attempt to decode part of the file. BUG=144509 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=216720

Patch Set 1 #

Patch Set 2 : Checkpoint #

Patch Set 3 : Checkpoint #

Patch Set 4 : Checkpoint #

Patch Set 5 : Checkpoint #

Patch Set 6 : Different sandbox init #

Patch Set 7 : Fix isolate path and use of IO function #

Patch Set 8 : Add video tests too #

Patch Set 9 : nit #

Patch Set 10 : Fix test file name #

Total comments: 24

Patch Set 11 : Fix gyp redundance #

Patch Set 12 : Address Comments #

Patch Set 13 : to dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+384 lines, -244 lines) Patch
A + chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 6 chunks +60 lines, -5 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/media_file_validator_factory.cc View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/media_galleries/fileapi/media_file_validator_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -228 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h View 1 2 3 4 5 6 7 8 1 chunk +72 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +91 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/supported_audio_video_checker.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/media_galleries/fileapi/supported_audio_video_checker.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +96 lines, -0 lines 0 comments Download
M chrome/browser_tests.isolate View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +9 lines, -9 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
vandebo (ex-Chrome)
csharp for isolate changes This depends on https://codereview.chromium.org/20572004/
7 years, 4 months ago (2013-08-07 06:05:32 UTC) #1
csharp
isolate change LGTM, but I'm wondering why media_file_validator_unittest.cc isn't called media_file_validator_browsertest.cc (Because of this I ...
7 years, 4 months ago (2013-08-07 12:49:38 UTC) #2
vandebo (ex-Chrome)
On 2013/08/07 12:49:38, csharp wrote: > isolate change LGTM, but I'm wondering why media_file_validator_unittest.cc > ...
7 years, 4 months ago (2013-08-07 15:42:36 UTC) #3
Lei Zhang
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc File chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc#newcode62 chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc:62: test_file = test_file.Append(FILE_PATH_LITERAL("media")); test_file = test_file.AppendASCII("media").AppendASCII("test").AppendASCII("data"); https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc#newcode92 chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc:92: void ...
7 years, 4 months ago (2013-08-08 00:08:01 UTC) #4
vandebo (ex-Chrome)
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc File chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc#newcode62 chrome/browser/media_galleries/fileapi/media_file_validator_browsertest.cc:62: test_file = test_file.Append(FILE_PATH_LITERAL("media")); On 2013/08/08 00:08:02, Lei Zhang wrote: ...
7 years, 4 months ago (2013-08-08 17:34:00 UTC) #5
Lei Zhang
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/08 ...
7 years, 4 months ago (2013-08-08 18:18:07 UTC) #6
vandebo (ex-Chrome)
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/08 ...
7 years, 4 months ago (2013-08-08 23:14:11 UTC) #7
Lei Zhang
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/08 ...
7 years, 4 months ago (2013-08-08 23:16:21 UTC) #8
vandebo (ex-Chrome)
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/08 ...
7 years, 4 months ago (2013-08-08 23:18:23 UTC) #9
Lei Zhang
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/08 ...
7 years, 4 months ago (2013-08-09 01:01:33 UTC) #10
Lei Zhang
And otherwise lgtm.
7 years, 4 months ago (2013-08-09 01:01:44 UTC) #11
vandebo (ex-Chrome)
https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:35: if (*file_closer_ && *file_closer_.get() == base::kInvalidPlatformFileValue) { On 2013/08/09 ...
7 years, 4 months ago (2013-08-09 04:11:09 UTC) #12
Lei Zhang
On 2013/08/09 04:11:09, vandebo wrote: > https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc > File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): > > https://codereview.chromium.org/20190002/diff/147001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode35 > ...
7 years, 4 months ago (2013-08-09 04:41:20 UTC) #13
vandebo (ex-Chrome)
On 2013/08/09 04:41:20, Lei Zhang wrote: > On 2013/08/09 04:11:09, vandebo wrote: > > > ...
7 years, 4 months ago (2013-08-09 05:08:18 UTC) #14
Lei Zhang
lgtm++
7 years, 4 months ago (2013-08-09 05:16:57 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/20190002/209002
7 years, 4 months ago (2013-08-09 14:11:02 UTC) #16
commit-bot: I haz the power
Failed to request the patch to try. Please note that binary files are still unsupported ...
7 years, 4 months ago (2013-08-09 14:11:19 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/vandebo@chromium.org/20190002/209002
7 years, 4 months ago (2013-08-09 14:16:08 UTC) #18
commit-bot: I haz the power
7 years, 4 months ago (2013-08-09 18:17:57 UTC) #19
Message was sent while issue was closed.
Change committed as 216720

Powered by Google App Engine
This is Rietveld 408576698