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

Issue 2589493006: Revert of Enable connection to Mojo services from Blink (Closed)

Created:
4 years ago by jam
Modified:
4 years ago
CC:
Aaron Boodman, abarth-chromium, blink-reviews, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, jam, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Revert of Enable connection to Mojo services from Blink (patchset #19 id:360001 of https://codereview.chromium.org/2460723003/ ) Reason for revert: Caused some build failures, looks like missing dependencies? https://build.chromium.org/p/chromium.gpu/builders/GPU%20Win%20Builder/builds/56562/steps/compile/logs/stdio FAILED: obj/third_party/WebKit/Source/platform/heap/heap/ThreadState.obj ninja -t msvc -e environment.x86 -- E:\b\c\cipd\goma/gomacc.exe "E:\b\depot_tools\win_toolchain\vs_files\d3cb0e37bdd120ad0ac4650b674b09e81be45616\VC\bin\amd64_x86/cl.exe" /nologo /showIncludes /FC @obj/third_party/WebKit/Source/platform/heap/heap/ThreadState.obj.rsp /c ../../third_party/WebKit/Source/platform/heap/ThreadState.cpp /Foobj/third_party/WebKit/Source/platform/heap/heap/ThreadState.obj /Fd"obj/third_party/WebKit/Source/platform/heap/heap_cc.pdb" e:\b\c\b\win\src\third_party\webkit\public\platform\platform.h(59): fatal error C1083: Cannot open include file: 'services/service_manager/public/interfaces/connector.mojom-blink.h': No such file or directory Original issue's description: > Enable connection to Mojo services from Blink > > This CL enables connections to Mojo services from Blink; more specifically, > from //third_party/WebKit/Source/modules, where dependencies on Chromium > code are in general undesired (including on Mojo services' client > libraries). To enable connecting to services without using the > Service Manager's client library, this CL does the following: > > (1) Adds a method to Platform that exposes the connection to the > ServiceManager as a service_manager::mojom::blink::ConnectorPtr. > (2) Builds a bare-bones ServiceConnector around this ConnectorPtr that > supports connecting to Mojo services by name from Blink. > (3) Ports TimeZoneMonitor to be hosted in the Device Service as an example > of connecting to an interface that is hosted in a service other than > //content/browser from Blink. > > ServiceConnector being "bare-bones" includes the facts that: > - Unlike blink::InterfaceProvider, blink::ServiceConnector is currently > thread-hostile. This should be easy to relax using similar mechanisms as > InterfaceProviderImpl. > - There is currently no API for obtaining an InterfaceProvider for a given > service (or a thread-safe wrapper, per the above comment). Again, this should > be easy to add. > > This CL also moves the definition of the device service name to mojom instead > of C++ in order to facilitate using this constant from Blink. > > BUG=612341 > TEST=http://crbug.com/288697#c12: load the page, change the system time zone, > and then click "recheck" to ensure that the renderer picks up the new > time zone. Don't reload the page, which is likely to give you a new > renderer process, use the "recheck" link on the page. > > Committed: https://crrev.com/8e3745ac05d7918a91ff9efb02280a7c1443de5c > Cr-Commit-Position: refs/heads/master@{#439498} TBR=jochen@chromium.org,dcheng@chromium.org,esprehn@chromium.org,haraken@chromium.org,noel@chromium.org,rockot@chromium.org,blundell@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=612341 Committed: https://crrev.com/bbfdf0517f5986ea2e356067644eb5be1e4de264 Cr-Commit-Position: refs/heads/master@{#439506}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+80 lines, -160 lines) Patch
M content/browser/BUILD.gn View 2 chunks +3 lines, -1 line 0 comments Download
M content/browser/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/browser_context.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/browser_main_loop.h View 3 chunks +8 lines, -0 lines 0 comments Download
M content/browser/browser_main_loop.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M content/child/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M content/child/blink_platform_impl.h View 1 chunk +0 lines, -3 lines 0 comments Download
M content/child/blink_platform_impl.cc View 3 chunks +5 lines, -16 lines 0 comments Download
M content/public/app/mojo/content_renderer_manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
M services/device/BUILD.gn View 1 chunk +0 lines, -8 lines 0 comments Download
D services/device/DEPS View 1 chunk +0 lines, -3 lines 0 comments Download
M services/device/device_service.h View 2 chunks +4 lines, -12 lines 0 comments Download
M services/device/device_service.cc View 2 chunks +0 lines, -11 lines 0 comments Download
M services/device/manifest.json View 1 chunk +0 lines, -1 line 0 comments Download
A services/device/public/cpp/BUILD.gn View 1 chunk +10 lines, -0 lines 0 comments Download
A services/device/public/cpp/constants.h View 1 chunk +14 lines, -0 lines 0 comments Download
A services/device/public/cpp/constants.cc View 1 chunk +11 lines, -0 lines 0 comments Download
D services/device/public/interfaces/BUILD.gn View 1 chunk +0 lines, -11 lines 0 comments Download
D services/device/public/interfaces/OWNERS View 1 chunk +0 lines, -2 lines 0 comments Download
D services/device/public/interfaces/constants.mojom View 1 chunk +0 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/modules/time_zone_monitor/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/time_zone_monitor/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/modules/time_zone_monitor/TimeZoneMonitorClient.cpp View 2 chunks +3 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/BUILD.gn View 2 chunks +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
D third_party/WebKit/Source/platform/ServiceConnector.h View 1 chunk +0 lines, -58 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/Platform.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M third_party/WebKit/public/BUILD.gn View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/public/platform/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
jam
Created Revert of Enable connection to Mojo services from Blink
4 years ago (2016-12-19 18:28:42 UTC) #2
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/2589493006/1
4 years ago (2016-12-19 18:29:10 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years ago (2016-12-19 18:30:42 UTC) #6
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/bbfdf0517f5986ea2e356067644eb5be1e4de264 Cr-Commit-Position: refs/heads/master@{#439506}
4 years ago (2016-12-19 18:32:54 UTC) #8
blundell
4 years ago (2016-12-20 06:49:44 UTC) #9
Message was sent while issue was closed.
lgtm, thanks

Powered by Google App Engine
This is Rietveld 408576698