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

Issue 2181163003: [Presentation API] Convert presentation.mojom to new wrapper types. (Closed)

Created:
4 years, 4 months ago by mark a. foltz
Modified:
4 years, 3 months ago
Reviewers:
imcheng, dcheng
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, jam, mlamouri+watch-content_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Presentation API] Convert presentation.mojom to new wrapper types. This converts presentation.mojom to use the new (std::) Mojo wrapper types: mojo::String => std::string mojo::Array => std::vector No behavior changes should ensue. Optional values are represented as base::Optional<Foo> with the new wrapper types requiring some additional changes. This work will simplify further changes for crbug.com/627655. BUG=627655 Committed: https://crrev.com/59e7b40948030815a49af887b922b370ba048b8b Cr-Commit-Position: refs/heads/master@{#408781}

Patch Set 1 #

Patch Set 2 : Fix comments #

Total comments: 4

Patch Set 3 : Respond to dcheng@ comments #

Total comments: 11

Patch Set 4 : Respond to dcheng@ imcheng@ comments #

Total comments: 8

Patch Set 5 : Respond to dcheng@ comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+166 lines, -126 lines) Patch
M content/browser/presentation/presentation_service_impl.h View 2 chunks +13 lines, -14 lines 0 comments Download
M content/browser/presentation/presentation_service_impl.cc View 1 2 3 4 9 chunks +48 lines, -47 lines 0 comments Download
M content/browser/presentation/presentation_service_impl_unittest.cc View 1 2 3 4 14 chunks +30 lines, -45 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.h View 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/presentation/presentation_dispatcher.cc View 6 chunks +13 lines, -14 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 2 chunks +8 lines, -1 line 0 comments Download
M third_party/WebKit/public/blink.gyp View 5 chunks +50 lines, -1 line 0 comments Download

Messages

Total messages: 18 (4 generated)
mark a. foltz
dcheng@: PTAL at third_party/WebKit/public GYP/GN changes imcheng@: PTAL at everything else Note: The GYP build ...
4 years, 4 months ago (2016-07-26 22:00:34 UTC) #2
dcheng
https://codereview.chromium.org/2181163003/diff/20001/content/browser/presentation/presentation_service_impl_unittest.cc File content/browser/presentation/presentation_service_impl_unittest.cc (right): https://codereview.chromium.org/2181163003/diff/20001/content/browser/presentation/presentation_service_impl_unittest.cc#newcode264 content/browser/presentation/presentation_service_impl_unittest.cc:264: OnScreenAvailabilityUpdated(std::string(url), available)) Why explicitly copy here? https://codereview.chromium.org/2181163003/diff/20001/content/browser/presentation/presentation_service_impl_unittest.cc#newcode327 content/browser/presentation/presentation_service_impl_unittest.cc:327: expected_msgs[1]->data ...
4 years, 4 months ago (2016-07-27 08:22:55 UTC) #3
mark a. foltz
https://codereview.chromium.org/2181163003/diff/20001/content/browser/presentation/presentation_service_impl_unittest.cc File content/browser/presentation/presentation_service_impl_unittest.cc (right): https://codereview.chromium.org/2181163003/diff/20001/content/browser/presentation/presentation_service_impl_unittest.cc#newcode264 content/browser/presentation/presentation_service_impl_unittest.cc:264: OnScreenAvailabilityUpdated(std::string(url), available)) On 2016/07/27 at 08:22:54, dcheng wrote: > ...
4 years, 4 months ago (2016-07-27 18:33:53 UTC) #4
mark a. foltz
FYI, gyp build succeeds and content_unittests pass with this patch.
4 years, 4 months ago (2016-07-27 19:38:09 UTC) #5
imcheng
lgtm https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc#newcode74 content/browser/presentation/presentation_service_impl.cc:74: // TODO(mfoltz): Should these be CHECKs? Probably not. ...
4 years, 4 months ago (2016-07-27 20:59:38 UTC) #6
dcheng
https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc#newcode52 content/browser/presentation/presentation_service_impl.cc:52: output->data = std::vector<uint8_t>(std::move(*(input->data))); I think this can just be ...
4 years, 4 months ago (2016-07-28 01:48:44 UTC) #7
mark a. foltz
https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2181163003/diff/40001/content/browser/presentation/presentation_service_impl.cc#newcode52 content/browser/presentation/presentation_service_impl.cc:52: output->data = std::vector<uint8_t>(std::move(*(input->data))); On 2016/07/28 at 01:48:44, dcheng (OOO ...
4 years, 4 months ago (2016-07-28 18:28:24 UTC) #8
dcheng
LGTM with nits addressed. https://codereview.chromium.org/2181163003/diff/60001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2181163003/diff/60001/content/browser/presentation/presentation_service_impl.cc#newcode110 content/browser/presentation/presentation_service_impl.cc:110: *(output->data) = std::move(input->data.value()); Nit: slightly ...
4 years, 4 months ago (2016-07-29 08:09:06 UTC) #9
mark a. foltz
Thanks for the thorough review. https://codereview.chromium.org/2181163003/diff/60001/content/browser/presentation/presentation_service_impl.cc File content/browser/presentation/presentation_service_impl.cc (right): https://codereview.chromium.org/2181163003/diff/60001/content/browser/presentation/presentation_service_impl.cc#newcode110 content/browser/presentation/presentation_service_impl.cc:110: *(output->data) = std::move(input->data.value()); On ...
4 years, 4 months ago (2016-07-29 20:42:01 UTC) #10
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/2181163003/80001
4 years, 4 months ago (2016-07-29 20:42:46 UTC) #13
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 4 months ago (2016-07-29 22:11:01 UTC) #14
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/59e7b40948030815a49af887b922b370ba048b8b Cr-Commit-Position: refs/heads/master@{#408781}
4 years, 4 months ago (2016-07-29 22:12:54 UTC) #16
tapted
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/2196143002/ by tapted@chromium.org. ...
4 years, 4 months ago (2016-08-01 03:12:03 UTC) #17
tapted
4 years, 4 months ago (2016-08-01 05:26:35 UTC) #18
Message was sent while issue was closed.
Relanding now - the revert didn't help the NaCl problem. But, FYI, this CL may
be missing some build dependencies. Please look into the error here:

https://build.chromium.org/p/chromium.memory.full/builders/Chromium%20Windows...

FAILED: obj/content/browser/frame_host/content.render_frame_host_impl.obj 
ninja -t msvc -e environment.x86 --
"C:\b\depot_tools\win_toolchain\vs_files\95ddda401ec5678f15eeed01d2bee08fcbc5ee97\VC\bin\amd64_x86\cl.exe"
/nologo /showIncludes /FC
@obj\content\browser\frame_host\content.render_frame_host_impl.obj.rsp /c
..\..\content\browser\frame_host\render_frame_host_impl.cc
/Foobj\content\browser\frame_host\content.render_frame_host_impl.obj
/Fdobj\content\content.cc.pdb 
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(152):error
C3668: 'content::PresentationServiceImpl::SetDefaultPresentationURL': method
with override specifier 'override' did not override any base class methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(154):error
C3668: 'content::PresentationServiceImpl::ListenForScreenAvailability': method
with override specifier 'override' did not override any base class methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(155):error
C3668: 'content::PresentationServiceImpl::StopListeningForScreenAvailability':
method with override specifier 'override' did not override any base class
methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(156):error
C3668: 'content::PresentationServiceImpl::StartSession': method with override
specifier 'override' did not override any base class methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(159):error
C3668: 'content::PresentationServiceImpl::JoinSession': method with override
specifier 'override' did not override any base class methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(166):error
C3668: 'content::PresentationServiceImpl::CloseConnection': method with override
specifier 'override' did not override any base class methods
c:\b\build\slave\drm-cr\build\src\content\browser\presentation\presentation_service_impl.h(168):error
C3668: 'content::PresentationServiceImpl::Terminate': method with override
specifier 'override' did not override any base class methods

This occurred while the CL was reverted, but that shouldn't have resulted in
flaky compile errors.

Powered by Google App Engine
This is Rietveld 408576698