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

Issue 2639503002: Convert utility process CheckMediaFile IPC to mojo (Closed)

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.

Description

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/+/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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -67 lines) Patch
M chrome/browser/media_galleries/fileapi/safe_audio_video_checker.h View 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc View 1 2 3 3 chunks +18 lines, -26 lines 0 comments Download
M chrome/common/extensions/chrome_utility_extensions_messages.h View 1 2 2 chunks +0 lines, -13 lines 0 comments Download
M chrome/common/extensions/media_parser.mojom View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.cc View 1 2 7 chunks +22 lines, -28 lines 0 comments Download

Messages

Total messages: 49 (32 generated)
Noel Gordon
Based on https://codereview.chromium.org/2611283002/ and now we have landed MediaParser .mojom, this becomes a lot simpler. ...
3 years, 11 months ago (2017-01-17 04:14:46 UTC) #4
Noel Gordon
add the usual suspects ;)
3 years, 11 months ago (2017-01-17 04:25:10 UTC) #8
Noel Gordon
Oh and is that _IPC::Send unused error_ getting a build bots down again? Seems so.
3 years, 11 months ago (2017-01-17 04:29:16 UTC) #11
Sam McNally
https://codereview.chromium.org/2639503002/diff/20001/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/2639503002/diff/20001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode58 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:58: const int64_t kFileDecodeTimeInMS = 250; constexpr base::TimeDelta kFileDecodeTime = ...
3 years, 11 months ago (2017-01-18 07:09:10 UTC) #16
tibell
lgtm Same comments as sammc, otherwise lgtm.
3 years, 11 months ago (2017-01-18 23:07:06 UTC) #17
Noel Gordon
The IPC::Send() helper routine caused build problems as mentioned above due to platform #ifdefi-ness. PITA ...
3 years, 11 months ago (2017-01-19 06:33:11 UTC) #21
Noel Gordon
On 2017/01/18 23:07:06, tibell wrote: > lgtm > > Same comments as sammc, otherwise lgtm. ...
3 years, 11 months ago (2017-01-19 06:38:34 UTC) #22
Sam McNally
lgtm
3 years, 11 months ago (2017-01-19 06:44:25 UTC) #23
Noel Gordon
+tommycli for media galleries. +dcheng for IPC security.
3 years, 11 months ago (2017-01-19 10:21:08 UTC) #29
tommycli
On 2017/01/19 10:21:08, noel gordon wrote: > +tommycli for media galleries. > +dcheng for IPC ...
3 years, 11 months ago (2017-01-19 16:52:03 UTC) #31
Noel Gordon
https://codereview.chromium.org/2639503002/diff/40001/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/2639503002/diff/40001/chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc#newcode25 chrome/browser/media_galleries/fileapi/safe_audio_video_checker.cc:25: #include "ipc/ipc_platform_file.h" We should probably clean up here: let ...
3 years, 11 months ago (2017-01-20 00:50:24 UTC) #32
Noel Gordon
On 2017/01/20 00:50:24, noel gordon wrote: > We should probably clean up here: let me ...
3 years, 11 months ago (2017-01-20 01:06:16 UTC) #36
dcheng
mojo lgtm
3 years, 11 months ago (2017-01-20 08:34:45 UTC) #39
Noel Gordon
+jochen for OWNERS.
3 years, 11 months ago (2017-01-20 10:02:31 UTC) #41
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-20 13:08:05 UTC) #43
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/2639503002/80001
3 years, 11 months ago (2017-01-20 14:55:14 UTC) #46
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 14:58:55 UTC) #49
Message was sent while issue was closed.
Committed patchset #4 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/643d85c8fd7fb89a8aea1af3f9ac...

Powered by Google App Engine
This is Rietveld 408576698