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

Issue 302573002: Add a Javascript wrapper around ServiceRegistry and expose it to WebUI. (Closed)

Created:
6 years, 7 months ago by Sam McNally
Modified:
6 years, 4 months ago
CC:
darin (slow to review), Aaron Boodman, abarth-chromium, arv+watch_chromium.org, ben+mojo_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, darin-cc_chromium.org, jam, qsr+mojo_chromium.org, raymes, James Su, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@render-view-shell
Visibility:
Public.

Description

Add a Javascript wrapper around ServiceRegistry and expose it to WebUI. This enables moving browser connection setup into each individual WebUI page implementation and thus allows each WebUI Mojo service to be registered with the ServiceRegsitry using its individual service name instead of a shared WebUI controller service name. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=286459

Patch Set 1 : #

Total comments: 14

Patch Set 2 : rebase #

Total comments: 2

Patch Set 3 : address comments #

Patch Set 4 : rebase #

Patch Set 5 : ServiceProvider-style names #

Total comments: 2

Patch Set 6 : address comment #

Total comments: 10

Patch Set 7 : address comments #

Patch Set 8 : rebase #

Patch Set 9 : rebase #

Patch Set 10 : rebase #

Patch Set 11 : fix compile #

Total comments: 4

Patch Set 12 : rebase #

Patch Set 13 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+221 lines, -120 lines) Patch
M chrome/browser/resources/omnibox/omnibox.js View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +9 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/mojo_web_ui_controller.h View 1 2 3 chunks +40 lines, -15 lines 0 comments Download
M chrome/browser/ui/webui/mojo_web_ui_controller.cc View 1 1 chunk +6 lines, -18 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/omnibox/omnibox_ui.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -4 lines 0 comments Download
M content/browser/webui/web_ui_mojo_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +18 lines, -21 lines 0 comments Download
M content/common/mojo/service_registry_impl.h View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M content/common/mojo/service_registry_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -2 lines 0 comments Download
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
A content/renderer/mojo/service_registry_js_wrapper.h View 1 2 3 4 5 6 1 chunk +51 lines, -0 lines 0 comments Download
A content/renderer/mojo/service_registry_js_wrapper.cc View 1 2 3 4 5 6 7 1 chunk +52 lines, -0 lines 0 comments Download
M content/renderer/web_ui_mojo.h View 3 chunks +2 lines, -18 lines 0 comments Download
M content/renderer/web_ui_mojo.cc View 1 2 3 4 5 6 7 3 chunks +2 lines, -21 lines 0 comments Download
M content/renderer/web_ui_mojo_context_state.h View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M content/renderer/web_ui_mojo_context_state.cc View 1 2 2 chunks +3 lines, -8 lines 0 comments Download
M content/renderer/web_ui_runner.cc View 1 2 3 4 5 6 2 chunks +9 lines, -0 lines 0 comments Download
M content/test/data/web_ui_mojo.js View 1 2 3 4 2 chunks +7 lines, -3 lines 0 comments Download
M content/test/data/web_ui_test_mojo_bindings.mojom View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
Sam McNally
6 years, 6 months ago (2014-06-16 05:58:04 UTC) #1
darin (slow to review)
This seems really nice to me. We should eventually be able to replace serviceRegistry here ...
6 years, 6 months ago (2014-06-21 04:44:16 UTC) #2
raymes
https://codereview.chromium.org/302573002/diff/250001/content/public/renderer/service_registry_js.h File content/public/renderer/service_registry_js.h (right): https://codereview.chromium.org/302573002/diff/250001/content/public/renderer/service_registry_js.h#newcode20 content/public/renderer/service_registry_js.h:20: v8::Isolate* isolate, ServiceRegistry* service_registry); nit: newline between params?
6 years, 6 months ago (2014-06-24 06:29:25 UTC) #3
Sam McNally
On 2014/06/21 04:44:16, darin wrote: > This seems really nice to me. We should eventually ...
6 years, 6 months ago (2014-06-24 08:45:02 UTC) #4
Sam McNally
@sky: ping
6 years, 6 months ago (2014-06-26 01:51:25 UTC) #5
sky
This looks fine to me. Don't you need to update the test js file though? ...
6 years, 6 months ago (2014-06-26 17:03:53 UTC) #6
Sam McNally
On 2014/06/26 17:03:53, sky wrote: > This looks fine to me. Don't you need to ...
6 years, 6 months ago (2014-06-26 23:43:12 UTC) #7
sky
I think you forgot, are you blind!?! LGTM
6 years, 6 months ago (2014-06-26 23:50:53 UTC) #8
Sam McNally
darin: Can I get OWNERS approval for content/?
6 years, 6 months ago (2014-06-27 03:22:19 UTC) #9
darin (slow to review)
https://codereview.chromium.org/302573002/diff/390001/content/browser/webui/web_ui_mojo_browsertest.cc File content/browser/webui/web_ui_mojo_browsertest.cc (right): https://codereview.chromium.org/302573002/diff/390001/content/browser/webui/web_ui_mojo_browsertest.cc#newcode65 content/browser/webui/web_ui_mojo_browsertest.cc:65: renderer_.Bind(request.PassMessagePipe()); It is kind of awkward to be connecting ...
6 years, 5 months ago (2014-06-28 21:10:39 UTC) #10
Sam McNally
https://codereview.chromium.org/302573002/diff/390001/content/browser/webui/web_ui_mojo_browsertest.cc File content/browser/webui/web_ui_mojo_browsertest.cc (right): https://codereview.chromium.org/302573002/diff/390001/content/browser/webui/web_ui_mojo_browsertest.cc#newcode65 content/browser/webui/web_ui_mojo_browsertest.cc:65: renderer_.Bind(request.PassMessagePipe()); On 2014/06/28 21:10:38, darin wrote: > It is ...
6 years, 5 months ago (2014-06-30 01:26:14 UTC) #11
Sam McNally
darin: ping
6 years, 5 months ago (2014-07-09 00:24:12 UTC) #12
Sam McNally
darin: ping
6 years, 5 months ago (2014-07-18 08:29:24 UTC) #13
Sam McNally
darin: ping
6 years, 5 months ago (2014-07-24 08:47:07 UTC) #14
Sam McNally
ping
6 years, 4 months ago (2014-07-29 11:34:17 UTC) #15
darin (slow to review)
LGTM with just a couple concerns: https://codereview.chromium.org/302573002/diff/490001/content/browser/webui/web_ui_mojo_browsertest.cc File content/browser/webui/web_ui_mojo_browsertest.cc (right): https://codereview.chromium.org/302573002/diff/490001/content/browser/webui/web_ui_mojo_browsertest.cc#newcode72 content/browser/webui/web_ui_mojo_browsertest.cc:72: virtual void OnConnectionError() ...
6 years, 4 months ago (2014-07-29 16:22:05 UTC) #16
Sam McNally
https://codereview.chromium.org/302573002/diff/490001/content/browser/webui/web_ui_mojo_browsertest.cc File content/browser/webui/web_ui_mojo_browsertest.cc (right): https://codereview.chromium.org/302573002/diff/490001/content/browser/webui/web_ui_mojo_browsertest.cc#newcode72 content/browser/webui/web_ui_mojo_browsertest.cc:72: virtual void OnConnectionError() OVERRIDE {} On 2014/07/29 16:22:05, darin ...
6 years, 4 months ago (2014-07-30 00:18:08 UTC) #17
Sam McNally
The CQ bit was checked by sammc@chromium.org
6 years, 4 months ago (2014-07-30 00:18:23 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sammc@chromium.org/302573002/550001
6 years, 4 months ago (2014-07-30 00:21:30 UTC) #19
commit-bot: I haz the power
6 years, 4 months ago (2014-07-30 09:54:19 UTC) #20
Message was sent while issue was closed.
Change committed as 286459

Powered by Google App Engine
This is Rietveld 408576698