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

Issue 2615423002: Convert utility process ParseMediaMetadata IPC to mojo (Closed)

Created:
3 years, 11 months ago by Noel Gordon
Modified:
3 years, 9 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, qsr+mojo_chromium.org, Lei Zhang, tommycli, tzik, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert utility process ParseMediaMetadata IPC to mojo Convert IPC media parse messages ChromeUtilityMsg_ParseMediaMetadata and ChromeUtilityHostMsg_ParseMediaMetadata_Finished to mojo. Add media_parser.mojom, add StructTraits for metadata::AttachedImage and use mojo common traits for base::DictionaryValue metadata. Resolve a ChromeContentUtilityClient TODO: if the utility process is running with elevated privileges, we only add elevated Mojo services to the service_manager::InterfaceRegistry. Add ExtensionsHandler API ExtensionsHandler::ExposeInterfacesToBrowser, and again, only expose its elevated Mojo services if the process is running elevated. Manually tested using the MGA media gallery sample app [1]. There is a browser test MediaGalleriesPlatformAppBrowserTest.GetMetadata that runs on chrome mac. [1] http://bit.ly/2i8qPSN BUG=680928 Review-Url: https://codereview.chromium.org/2615423002 Cr-Commit-Position: refs/heads/master@{#443579} Committed: https://chromium.googlesource.com/chromium/src/+/3b491f68e9be76a22f54208d6c1a3531eb4d8386

Patch Set 1 #

Patch Set 2 : Build fix. #

Patch Set 3 : Patch for review. #

Total comments: 10

Patch Set 4 : Respond to review comments. #

Patch Set 5 : Use ::metadata::AttachedImage uniformly in the struct traits. #

Total comments: 16

Patch Set 6 : More review comments. #

Total comments: 16

Patch Set 7 : Security review comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+261 lines, -88 lines) Patch
M chrome/browser/chrome_content_utility_manifest_overlay.json View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h View 1 2 3 4 5 4 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc View 1 2 3 4 5 6 3 chunks +35 lines, -26 lines 0 comments Download
M chrome/common/BUILD.gn View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/extensions/BUILD.gn View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/common/extensions/OWNERS View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/common/extensions/chrome_utility_extensions_messages.h View 1 2 3 4 5 6 3 chunks +0 lines, -16 lines 0 comments Download
A chrome/common/extensions/media_parser.mojom View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/common/extensions/media_parser.typemap View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
A chrome/common/extensions/media_parser_struct_traits.h View 1 2 3 4 5 6 1 chunk +36 lines, -0 lines 0 comments Download
A chrome/common/extensions/media_parser_struct_traits.cc View 1 2 3 4 5 6 1 chunk +30 lines, -0 lines 0 comments Download
A chrome/common/extensions/typemaps.gni View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/utility/chrome_content_utility_client.cc View 1 2 3 4 5 2 chunks +12 lines, -8 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.h View 1 2 3 4 5 3 chunks +12 lines, -8 lines 0 comments Download
M chrome/utility/extensions/extensions_handler.cc View 1 2 3 4 5 6 7 chunks +61 lines, -26 lines 0 comments Download
M mojo/public/tools/bindings/chromium_bindings_configuration.gni View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 85 (61 generated)
Noel Gordon
Teted with https://github.com/GoogleChrome/chrome-app-samples/tree/master/samples/media-gallery sample, also available in the chrome webstore at https://chrome.google.com/webstore/detail/media-gallery-sample/lidepfgfmameopopgagobnpndcnfgbnk
3 years, 11 months ago (2017-01-08 07:27:45 UTC) #8
Noel Gordon
My first attempt at using mojo struct traits, lemme know if I'm doing it wrong. ...
3 years, 11 months ago (2017-01-09 02:14:43 UTC) #37
tibell
https://codereview.chromium.org/2615423002/diff/100001/chrome/common/extensions/media_parser.mojom File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2615423002/diff/100001/chrome/common/extensions/media_parser.mojom#newcode13 chrome/common/extensions/media_parser.mojom:13: string type; Is this a MIME type? Please add ...
3 years, 11 months ago (2017-01-09 03:55:52 UTC) #38
Noel Gordon
New patch uploaded ... https://codereview.chromium.org/2615423002/diff/100001/chrome/common/extensions/media_parser.mojom File chrome/common/extensions/media_parser.mojom (right): https://codereview.chromium.org/2615423002/diff/100001/chrome/common/extensions/media_parser.mojom#newcode13 chrome/common/extensions/media_parser.mojom:13: string type; On 2017/01/09 03:55:51, ...
3 years, 11 months ago (2017-01-09 14:54:19 UTC) #42
tibell
lgtm
3 years, 11 months ago (2017-01-10 06:09:32 UTC) #49
Sam McNally
lgtm https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc (right): https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc#newcode112 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc:112: base::Passed(metadata_dictionary->CreateDeepCopy()), base::Passed(&metadata_dictionary) https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h (right): https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h#newcode67 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.h:67: ...
3 years, 11 months ago (2017-01-10 06:55:14 UTC) #50
Noel Gordon
https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc (right): https://codereview.chromium.org/2615423002/diff/140001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc#newcode112 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc:112: base::Passed(metadata_dictionary->CreateDeepCopy()), On 2017/01/10 06:55:14, Sam McNally wrote: > base::Passed(&metadata_dictionary) ...
3 years, 11 months ago (2017-01-10 22:52:37 UTC) #55
Noel Gordon
+tommycli for media galleries. +dcheng for IPC security.
3 years, 11 months ago (2017-01-10 23:04:38 UTC) #57
tommycli
roughly lgtm. I know very little about mojo. But since the browser tests and manual ...
3 years, 11 months ago (2017-01-11 00:42:03 UTC) #58
Noel Gordon
On 2017/01/11 00:42:03, tommycli wrote: > roughly lgtm. > > I know very little about ...
3 years, 11 months ago (2017-01-11 00:48:35 UTC) #59
chromium-reviews
That particular piece is now used by ChromeOS File Manager. The work you have done ...
3 years, 11 months ago (2017-01-11 00:52:06 UTC) #60
dcheng
https://codereview.chromium.org/2615423002/diff/160001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc (right): https://codereview.chromium.org/2615423002/diff/160001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc#newcode102 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc:102: interface_.reset(); I have mixed feelings about this sort of ...
3 years, 11 months ago (2017-01-11 09:09:59 UTC) #61
Noel Gordon
https://codereview.chromium.org/2615423002/diff/160001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc File chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc (right): https://codereview.chromium.org/2615423002/diff/160001/chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc#newcode102 chrome/browser/media_galleries/fileapi/safe_media_metadata_parser.cc:102: interface_.reset(); On 2017/01/11 09:09:59, dcheng wrote: > I have ...
3 years, 11 months ago (2017-01-12 14:11:20 UTC) #66
Noel Gordon
https://codereview.chromium.org/2615423002/diff/160001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/2615423002/diff/160001/chrome/utility/chrome_content_utility_client.cc#newcode205 chrome/utility/chrome_content_utility_client.cc:205: if (running_elevated) On 2017/01/12 14:11:20, noel gordon wrote: > ...
3 years, 11 months ago (2017-01-12 23:19:05 UTC) #67
dcheng
mojo lgtm https://codereview.chromium.org/2615423002/diff/160001/chrome/utility/chrome_content_utility_client.cc File chrome/utility/chrome_content_utility_client.cc (right): https://codereview.chromium.org/2615423002/diff/160001/chrome/utility/chrome_content_utility_client.cc#newcode205 chrome/utility/chrome_content_utility_client.cc:205: if (running_elevated) On 2017/01/12 23:19:04, noel gordon ...
3 years, 11 months ago (2017-01-13 09:21:04 UTC) #68
Noel Gordon
On 2017/01/13 09:21:04, dcheng wrote: > mojo lgtm > > https://codereview.chromium.org/2615423002/diff/160001/chrome/utility/chrome_content_utility_client.cc > File chrome/utility/chrome_content_utility_client.cc (right): ...
3 years, 11 months ago (2017-01-13 09:45:14 UTC) #69
Noel Gordon
+jochen for OWNERS.
3 years, 11 months ago (2017-01-13 09:45:50 UTC) #71
Noel Gordon
On 2017/01/11 00:48:35, noel gordon wrote: > On 2017/01/11 00:42:03, tommycli wrote: > > roughly ...
3 years, 11 months ago (2017-01-13 10:32:54 UTC) #74
Noel Gordon
On 2017/01/13 10:32:54, noel gordon wrote: > On 2017/01/11 00:48:35, noel gordon wrote: > > ...
3 years, 11 months ago (2017-01-13 10:34:14 UTC) #75
jochen (gone - plz use gerrit)
lgtm
3 years, 11 months ago (2017-01-13 14:20:42 UTC) #76
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/2615423002/180001
3 years, 11 months ago (2017-01-13 15:35:31 UTC) #79
commit-bot: I haz the power
Committed patchset #7 (id:180001) as https://chromium.googlesource.com/chromium/src/+/3b491f68e9be76a22f54208d6c1a3531eb4d8386
3 years, 11 months ago (2017-01-13 16:49:15 UTC) #82
Wez
Hallo yzshen@chromium.org! Due to a depot_tools patch which mistakenly removed the OWNERS check for non-source ...
3 years, 10 months ago (2017-02-07 19:49:57 UTC) #84
yzshen1
3 years, 9 months ago (2017-03-21 17:27:44 UTC) #85
Message was sent while issue was closed.
chromium_bindings_configuration.gni LGTM

Powered by Google App Engine
This is Rietveld 408576698