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

Issue 2209883002: Link blink mojom bindings into platform target (Closed)

Created:
4 years, 4 months ago by jam
Modified:
4 years, 4 months ago
Reviewers:
haraken, esprehn
CC:
blink-reviews, blink-reviews-api_chromium.org, chromium-reviews, darin-cc_chromium.org, dglazkov+blink, kinuko+watch, 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

Link Blink mojom bindings into platform target. The problem is that r406852 introduced a dependency from //third_party/WebKit/public:mojo_bindings to //url/mojo:url_mojom_origin which the typemap translated to webkit's SecurityOrigin. This means that mojo_bindings needs to set BLINK_PLATFORM_IMPLEMENTATION for the blink variant and have that propagate to the generated target. Otherwise SecurityOrigin is imported by mojo_bindings to blink_platform.dll, which defines it. The fix is to not link platform with mojom_bindings_blink variant, but instead compile that variant with platform so that it gets its config. BUG=632082

Patch Set 1 #

Patch Set 2 : merge and add some comments #

Patch Set 3 : merge and add comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+96 lines, -66 lines) Patch
M chrome/android/BUILD.gn View 2 chunks +2 lines, -2 lines 0 comments Download
M content/BUILD.gn View 1 2 1 chunk +5 lines, -1 line 0 comments Download
M content/app/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/common/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/common/bluetooth/web_bluetooth_device_id.typemap View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/public/browser/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M content/test/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M content/utility/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/modules/BUILD.gn View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 1 2 4 chunks +78 lines, -1 line 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 3 chunks +1 line, -53 lines 0 comments Download

Messages

Total messages: 40 (33 generated)
esprehn
This seems reasonable to me, is there a reason not to do this? :)
4 years, 4 months ago (2016-08-03 23:17:33 UTC) #22
jam
On 2016/08/03 23:17:33, esprehn wrote: > This seems reasonable to me, is there a reason ...
4 years, 4 months ago (2016-08-03 23:22:18 UTC) #23
esprehn
Can we do what's said here? https://bugs.chromium.org/p/chromium/issues/detail?id=632082#c13
4 years, 4 months ago (2016-08-04 05:15:49 UTC) #24
jam
Looks like the thread settled on this solution. Do you have any more comments on ...
4 years, 4 months ago (2016-08-05 19:54:13 UTC) #34
esprehn
lgtm, haraken@ are you okay with this?
4 years, 4 months ago (2016-08-05 20:53:49 UTC) #38
jam
actually hold off on reviews, it looks like we might need a different solution.
4 years, 4 months ago (2016-08-05 23:13:24 UTC) #39
haraken
4 years, 4 months ago (2016-08-06 00:43:51 UTC) #40
On 2016/08/05 20:53:49, esprehn wrote:
> lgtm, haraken@ are you okay with this?

Yes, LGTM

Powered by Google App Engine
This is Rietveld 408576698