|
|
Chromium Code Reviews|
Created:
3 years, 11 months ago by Noel Gordon Modified:
3 years, 11 months ago CC:
Aaron Boodman, abarth-chromium, chromium-apps-reviews_chromium.org, chromium-reviews, darin (slow to review), extensions-reviews_chromium.org, kinuko+fileapi, nhiroki, posciak+watch_chromium.org, qsr+mojo_chromium.org, Lei Zhang, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org Target Ref:
refs/pending/heads/master Project:
chromium Visibility:
Public. |
DescriptionConvert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead. Add TODOs.
BUG=680928
Review-Url: https://codereview.chromium.org/2639503002
Cr-Commit-Position: refs/heads/master@{#445054}
Committed: https://chromium.googlesource.com/chromium/src/+/643d85c8fd7fb89a8aea1af3f9ac0dc2eb7ba89e
Patch Set 1 #Patch Set 2 : Build fix: IPC::Send is now used on #ifdef WIN and OSX only. #
Total comments: 4
Patch Set 3 : Review comments, remove the IPC::Send() helper. #
Total comments: 1
Patch Set 4 : Removed unused #include files, add TODO. #
Messages
Total messages: 49 (32 generated)
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
noel@chromium.org changed reviewers: + tibell@chromium.org
Based on https://codereview.chromium.org/2611283002/ and now we have landed MediaParser .mojom, this becomes a lot simpler. PTAL.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-...) linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_...)
noel@chromium.org changed reviewers: + sammc@google.com
add the usual suspects ;)
Description was changed from ========== [wip] CheckMediaFile IPC to mojo Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. BUG=680928 ========== to ========== [wip] CheckMediaFile IPC to mojo Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. BUG=680928 ==========
noel@chromium.org changed reviewers: + sammc@chromium.org - sammc@google.com
Oh and is that _IPC::Send unused error_ getting a build bots down again? Seems so.
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
https://codereview.chromium.org/2639503002/diff/20001/chrome/browser/media_ga... File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/2639503002/diff/20001/chrome/browser/media_ga... chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:58: const int64_t kFileDecodeTimeInMS = 250; constexpr base::TimeDelta kFileDecodeTime = base::TimeDelta::FromFromMilliseconds(250); https://codereview.chromium.org/2639503002/diff/20001/chrome/common/extension... File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2639503002/diff/20001/chrome/common/extension... chrome/common/extensions/media_parser.mojom:31: CheckMediaFile(int64 decode_time_ms, mojo.common.mojom.File file) Use a mojo.common.mojom.TimeDelta for |decode_time_ms| (and rename to decode_time).
lgtm Same comments as sammc, otherwise lgtm.
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
Description was changed from ========== [wip] CheckMediaFile IPC to mojo Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. BUG=680928 ========== to ========== Convert utility process CheckMediaFile IPC to mojo Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. BUG=680928 ==========
The IPC::Send() helper routine caused build problems as mentioned above due to platform #ifdefi-ness. PITA so I also decided to remove it in this patch, and call the real Send() directly. https://codereview.chromium.org/2639503002/diff/20001/chrome/browser/media_ga... File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/2639503002/diff/20001/chrome/browser/media_ga... chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:58: const int64_t kFileDecodeTimeInMS = 250; On 2017/01/18 07:09:09, Sam McNally wrote: > constexpr base::TimeDelta kFileDecodeTime = > base::TimeDelta::FromFromMilliseconds(250); That worked well. Done. https://codereview.chromium.org/2639503002/diff/20001/chrome/common/extension... File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2639503002/diff/20001/chrome/common/extension... chrome/common/extensions/media_parser.mojom:31: CheckMediaFile(int64 decode_time_ms, mojo.common.mojom.File file) On 2017/01/18 07:09:09, Sam McNally wrote: > Use a mojo.common.mojom.TimeDelta for |decode_time_ms| (and rename to > decode_time). Done (and done).
On 2017/01/18 23:07:06, tibell wrote: > lgtm > > Same comments as sammc, otherwise lgtm. nod, sam's comments done.
lgtm
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
Description was changed from ========== Convert utility process CheckMediaFile IPC to mojo Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. BUG=680928 ========== to ========== Convert utility process CheckMediaFile IPC to mojo Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo interface exposed by the utility process to the browser, update media gallery call site to use mojo for this service. Covered by browser tests: MediaFileValidatorTest.ValidVideo and MediaFileValidatorTest.ValidAudio. Remove the IPC::Send helper to avoid wrapping it a WIN || OSX #ifdef, call the real IPC::Send directly instead. BUG=680928 ==========
Description was changed from
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery call site to use mojo for this service.
Covered by browser tests: MediaFileValidatorTest.ValidVideo and
MediaFileValidatorTest.ValidAudio.
Remove the IPC::Send helper to avoid wrapping it a WIN || OSX #ifdef,
call the real IPC::Send directly instead.
BUG=680928
==========
to
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it a WIN || OSX #ifdef,
directly call the real IPC::Send instead.
BUG=680928
==========
noel@chromium.org changed reviewers: + dcheng@chromium.org, tommycli@chromium.org
+tommycli for media galleries. +dcheng for IPC security.
Description was changed from
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it a WIN || OSX #ifdef,
directly call the real IPC::Send instead.
BUG=680928
==========
to
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead.
BUG=680928
==========
On 2017/01/19 10:21:08, noel gordon wrote: > +tommycli for media galleries. > +dcheng for IPC security. lgtm from media galleries perspective
https://codereview.chromium.org/2639503002/diff/40001/chrome/browser/media_ga... File chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc (right): https://codereview.chromium.org/2639503002/diff/40001/chrome/browser/media_ga... chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:25: #include "ipc/ipc_platform_file.h" We should probably clean up here: let me removed the unused #includes [1]. [1] With IWYU, seems we also need a remove what you don't use RWUDU tool.
Patchset #4 (id:60001) has been deleted
The CQ bit was checked by noel@chromium.org to run a CQ dry run
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
On 2017/01/20 00:50:24, noel gordon wrote: > We should probably clean up here: let me remove the unused #includes [1]. > > [1] With IWYU, seems we also need a remove what you don't use RWUDU tool. Right done that, throwing the result at the bots now. > tommycli wrote: > On 2017/01/19 10:21:08, noel gordon wrote: > > +tommycli for media galleries. > > +dcheng for IPC security. > > > lgtm from media galleries perspective Thanks. I added some followup TODO.
The CQ bit was unchecked by commit-bot@chromium.org
Dry run: This issue passed the CQ dry run.
mojo lgtm
noel@chromium.org changed reviewers: + jochen@chromium.org
+jochen for OWNERS.
Description was changed from
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead.
BUG=680928
==========
to
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead. Add TODOs.
BUG=680928
==========
lgtm
The CQ bit was checked by noel@chromium.org
The patchset sent to the CQ was uploaded after l-g-t-m from tibell@chromium.org, sammc@chromium.org, tommycli@chromium.org Link to the patchset: https://codereview.chromium.org/2639503002/#ps80001 (title: "Removed unused #include, add TODO.")
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.or...
CQ is committing da patch.
Bot data: {"patchset_id": 80001, "attempt_start_ts": 1484924098602770,
"parent_rev": "d3bdf95134d7104f119a3db170346c527714ebd2", "commit_rev":
"643d85c8fd7fb89a8aea1af3f9ac0dc2eb7ba89e"}
Message was sent while issue was closed.
Description was changed from
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead. Add TODOs.
BUG=680928
==========
to
==========
Convert utility process CheckMediaFile IPC to mojo
Add CheckMediaFile() method to the extensions::mojo::MediaParser mojo
interface exposed by the utility process to the browser, update media
gallery caller to use mojo calls for this service. Covered by browser
tests MediaFileValidatorTest.{ValidVideo, ValidAudio}.
Remove the IPC::Send helper to avoid wrapping it in WIN || OSX #ifdef
and directly call the real IPC::Send instead. Add TODOs.
BUG=680928
Review-Url: https://codereview.chromium.org/2639503002
Cr-Commit-Position: refs/heads/master@{#445054}
Committed:
https://chromium.googlesource.com/chromium/src/+/643d85c8fd7fb89a8aea1af3f9ac...
==========
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as https://chromium.googlesource.com/chromium/src/+/643d85c8fd7fb89a8aea1af3f9ac... |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
