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

Issue 1830883002: Add blink::ServiceRegistry and expose it from LocalFrame and Platform. (Closed)

Created:
4 years, 9 months ago by Sam McNally
Modified:
4 years, 8 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, blink-reviews-layout_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dcheng, dglazkov+blink, krit, eae+blinkwatch, f(malita), fs, gavinp+loader_chromium.org, gyuyoung2, jam, Nate Chapin, jchaffraix+rendering, kinuko+watch, kouhei+svg_chromium.org, leviw+renderwatch, loading-reviews_chromium.org, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-blink_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, ortuno, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, qsr+mojo_chromium.org, Reilly Grant (use Gerrit), rwlbuis, Stephen Chennney, szager+layoutwatch_chromium.org, tyoshino+watch_chromium.org, viettrungluu+watch_chromium.org, Yoav Weiss, yzshen+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add blink::ServiceRegistry and expose it from LocalFrame and Platform. BUG=596559 Committed: https://crrev.com/bebeb608346c93d77f496c47cf0df62da80c517e Cr-Commit-Position: refs/heads/master@{#385388}

Patch Set 1 : #

Total comments: 14

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : #

Patch Set 5 : rebase #

Patch Set 6 : #

Total comments: 6

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : #

Total comments: 3

Patch Set 10 : rebase #

Patch Set 11 : fix build after rebase #

Patch Set 12 : rebase #

Patch Set 13 : Avoid crashing if the WebFrameClient is null #

Patch Set 14 : rebase #

Total comments: 4

Patch Set 15 : #

Patch Set 16 : rebase #

Total comments: 2

Patch Set 17 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+188 lines, -50 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/test/render_view_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +2 lines, -1 line 0 comments Download
A content/renderer/mojo/blink_service_registry_impl.h View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download
A content/renderer/mojo/blink_service_registry_impl.cc View 1 2 3 4 5 6 1 chunk +28 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +5 lines, -0 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -2 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +7 lines, -4 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 4 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/bindings/core/v8/V8PerIsolateData.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +7 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/LocalFrame.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +6 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/payments/PaymentRequest.cpp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/exported/Platform.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/platform/exported/ServiceRegistry.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.h View 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/testing/TestingPlatformSupport.cpp View 1 2 3 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/public/platform/Platform.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 2 chunks +4 lines, -11 lines 0 comments Download
A third_party/WebKit/public/platform/ServiceRegistry.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +29 lines, -0 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
Sam McNally
4 years, 8 months ago (2016-03-29 04:30:56 UTC) #6
dcheng
https://codereview.chromium.org/1830883002/diff/80001/third_party/WebKit/public/web/WebLocalFrame.h File third_party/WebKit/public/web/WebLocalFrame.h (right): https://codereview.chromium.org/1830883002/diff/80001/third_party/WebKit/public/web/WebLocalFrame.h#newcode35 third_party/WebKit/public/web/WebLocalFrame.h:35: BLINK_EXPORT static WebLocalFrame* create(WebTreeScopeType, WebFrameClient*, WebFrame* opener = nullptr, ...
4 years, 8 months ago (2016-03-29 04:51:56 UTC) #8
esprehn
https://codereview.chromium.org/1830883002/diff/80001/content/renderer/mojo/blink_service_registry_wrapper.cc File content/renderer/mojo/blink_service_registry_wrapper.cc (right): https://codereview.chromium.org/1830883002/diff/80001/content/renderer/mojo/blink_service_registry_wrapper.cc#newcode12 content/renderer/mojo/blink_service_registry_wrapper.cc:12: #include "device/battery/battery_monitor.mojom.h" this is a really bad layering violation ...
4 years, 8 months ago (2016-03-29 05:26:20 UTC) #9
Sam McNally
https://codereview.chromium.org/1830883002/diff/80001/content/renderer/mojo/blink_service_registry_wrapper.cc File content/renderer/mojo/blink_service_registry_wrapper.cc (right): https://codereview.chromium.org/1830883002/diff/80001/content/renderer/mojo/blink_service_registry_wrapper.cc#newcode35 content/renderer/mojo/blink_service_registry_wrapper.cc:35: base::StringPiece(name) == device::BatteryMonitor::Name_) { On 2016/03/29 05:26:20, esprehn wrote: ...
4 years, 8 months ago (2016-03-30 00:20:53 UTC) #10
esprehn
lgtm w/ a comment. If dcheng@ and rockot@ are happy lets do it. :) https://codereview.chromium.org/1830883002/diff/180001/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp ...
4 years, 8 months ago (2016-03-31 05:10:43 UTC) #11
dcheng
https://codereview.chromium.org/1830883002/diff/180001/content/renderer/mojo/blink_service_registry_impl.cc File content/renderer/mojo/blink_service_registry_impl.cc (right): https://codereview.chromium.org/1830883002/diff/180001/content/renderer/mojo/blink_service_registry_impl.cc#newcode16 content/renderer/mojo/blink_service_registry_impl.cc:16: static_cast<ServiceRegistryImpl*>(service_registry)->GetWeakPtr()) {} Why not just take a ServiceRegistryImpl? https://codereview.chromium.org/1830883002/diff/180001/content/renderer/renderer_blink_platform_impl.cc ...
4 years, 8 months ago (2016-03-31 05:34:26 UTC) #12
Sam McNally
https://codereview.chromium.org/1830883002/diff/180001/content/renderer/mojo/blink_service_registry_impl.cc File content/renderer/mojo/blink_service_registry_impl.cc (right): https://codereview.chromium.org/1830883002/diff/180001/content/renderer/mojo/blink_service_registry_impl.cc#newcode16 content/renderer/mojo/blink_service_registry_impl.cc:16: static_cast<ServiceRegistryImpl*>(service_registry)->GetWeakPtr()) {} On 2016/03/31 05:34:26, dcheng wrote: > Why ...
4 years, 8 months ago (2016-03-31 09:26:27 UTC) #13
dcheng
lgtm https://codereview.chromium.org/1830883002/diff/240001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1830883002/diff/240001/content/public/test/render_view_test.cc#newcode175 content/public/test/render_view_test.cc:175: : RendererBlinkPlatformImpl(scheduler, base::WeakPtr<ServiceRegistry>()) { Nit: nullptr? https://codereview.chromium.org/1830883002/diff/240001/content/renderer/render_thread_impl.cc File ...
4 years, 8 months ago (2016-03-31 20:16:08 UTC) #14
esprehn
Can we land this now? :D
4 years, 8 months ago (2016-04-04 17:04:45 UTC) #15
Sam McNally
+timvolodine for third_party/WebKit/Source/modules/battery/ +rouslan for third_party/WebKit/Source/modules/payments/ +sky for content/public/test/ https://codereview.chromium.org/1830883002/diff/240001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1830883002/diff/240001/content/public/test/render_view_test.cc#newcode175 content/public/test/render_view_test.cc:175: ...
4 years, 8 months ago (2016-04-05 02:34:51 UTC) #17
please use gerrit instead
third_party/WebKit/Source/modules/payments/PaymentRequest.cpp lgtm
4 years, 8 months ago (2016-04-05 02:47:12 UTC) #18
sky
LGTM https://codereview.chromium.org/1830883002/diff/340001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1830883002/diff/340001/content/public/test/render_view_test.cc#newcode175 content/public/test/render_view_test.cc:175: : RendererBlinkPlatformImpl(scheduler, base::WeakPtr<ServiceRegistry>()) { I'm surprised nullptr doesn't ...
4 years, 8 months ago (2016-04-05 16:54:13 UTC) #19
timvolodine
modules/battery -- lgtm https://codereview.chromium.org/1830883002/diff/340001/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp File third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp (right): https://codereview.chromium.org/1830883002/diff/340001/third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp#newcode59 third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp:59: // m_monitor can be null during ...
4 years, 8 months ago (2016-04-05 16:58:04 UTC) #20
esprehn
FYI, no need to upload a new patch. https://codereview.chromium.org/1830883002/diff/380001/third_party/WebKit/Source/core/frame/LocalFrame.h File third_party/WebKit/Source/core/frame/LocalFrame.h (right): https://codereview.chromium.org/1830883002/diff/380001/third_party/WebKit/Source/core/frame/LocalFrame.h#newcode84 third_party/WebKit/Source/core/frame/LocalFrame.h:84: static ...
4 years, 8 months ago (2016-04-05 23:49:14 UTC) #21
Sam McNally
https://codereview.chromium.org/1830883002/diff/340001/content/public/test/render_view_test.cc File content/public/test/render_view_test.cc (right): https://codereview.chromium.org/1830883002/diff/340001/content/public/test/render_view_test.cc#newcode175 content/public/test/render_view_test.cc:175: : RendererBlinkPlatformImpl(scheduler, base::WeakPtr<ServiceRegistry>()) { On 2016/04/05 16:54:13, sky wrote: ...
4 years, 8 months ago (2016-04-06 01:32:53 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1830883002/440001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1830883002/440001
4 years, 8 months ago (2016-04-06 06:34:20 UTC) #27
commit-bot: I haz the power
Committed patchset #17 (id:440001)
4 years, 8 months ago (2016-04-06 06:43:07 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 06:44:37 UTC) #30
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/bebeb608346c93d77f496c47cf0df62da80c517e
Cr-Commit-Position: refs/heads/master@{#385388}

Powered by Google App Engine
This is Rietveld 408576698