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

Issue 652793002: Add service registration for apps APIs implemented as mojo services. (Closed)

Created:
6 years, 2 months ago by Sam McNally
Modified:
6 years, 1 month ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add service registration for apps APIs implemented as mojo services. This adds a ServiceRegistrationManager that acts as a global repository of extensions API services to be added to RenderFrameHosts along with the extensions API permissions that gate access to them. BUG=389016 Committed: https://crrev.com/d92097b170dd8bf44cbef31fa5fae5d523d1c651 Cr-Commit-Position: refs/heads/master@{#301310}

Patch Set 1 #

Patch Set 2 : rebase #

Total comments: 19

Patch Set 3 : rebase #

Patch Set 4 : address comments #

Patch Set 5 : #

Patch Set 6 : address comments #

Patch Set 7 : add services to top-level frames only #

Patch Set 8 : rebase #

Patch Set 9 : #

Patch Set 10 : extensions/browser/mojo #

Total comments: 3

Patch Set 11 : address comment #

Total comments: 3

Patch Set 12 : Another TODO #

Patch Set 13 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+192 lines, -0 lines) Patch
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/extension_web_contents_observer.cc View 1 2 3 4 5 6 7 8 9 2 chunks +6 lines, -0 lines 0 comments Download
A extensions/browser/mojo/service_registration_manager.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +97 lines, -0 lines 0 comments Download
A extensions/browser/mojo/service_registration_manager.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +80 lines, -0 lines 0 comments Download
M extensions/common/switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -0 lines 0 comments Download
M extensions/common/switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (7 generated)
Sam McNally
6 years, 2 months ago (2014-10-13 20:49:19 UTC) #2
raymes
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc#newcode33 extensions/browser/extension_web_contents_observer.cc:33: if (known_render_frame_hosts_.count(render_frame_host)) It seems like a bug that this ...
6 years, 2 months ago (2014-10-15 20:22:50 UTC) #3
raymes
6 years, 2 months ago (2014-10-15 20:23:07 UTC) #5
Ken Rockot(use gerrit already)
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc#newcode33 extensions/browser/extension_web_contents_observer.cc:33: if (known_render_frame_hosts_.count(render_frame_host)) On 2014/10/15 20:22:49, raymes wrote: > It ...
6 years, 2 months ago (2014-10-15 21:45:27 UTC) #6
Sam McNally
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc#newcode33 extensions/browser/extension_web_contents_observer.cc:33: if (known_render_frame_hosts_.count(render_frame_host)) On 2014/10/15 21:45:27, Ken Rockot wrote: > ...
6 years, 2 months ago (2014-10-15 22:52:56 UTC) #7
Sam McNally
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/service_registration_manager.cc File extensions/browser/service_registration_manager.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/service_registration_manager.cc#newcode68 extensions/browser/service_registration_manager.cc:68: extension, render_frame_host->GetProcess()->GetID()); On 2014/10/15 20:22:49, raymes wrote: > I ...
6 years, 2 months ago (2014-10-20 00:22:07 UTC) #9
raymes
Thanks, looks close to me. https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc#newcode33 extensions/browser/extension_web_contents_observer.cc:33: if (known_render_frame_hosts_.count(render_frame_host)) Given that ...
6 years, 2 months ago (2014-10-20 02:12:55 UTC) #10
Sam McNally
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/service_registration_manager.cc File extensions/browser/service_registration_manager.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/service_registration_manager.cc#newcode71 extensions/browser/service_registration_manager.cc:71: // pass |site_url| as the URL for permission checking. ...
6 years, 2 months ago (2014-10-20 07:28:20 UTC) #12
not at google - send to devlin
(I presume you don't want me to look at anything besides that 1 line) https://codereview.chromium.org/652793002/diff/120001/extensions/browser/service_registration_manager.cc ...
6 years, 2 months ago (2014-10-20 18:28:31 UTC) #13
Sam McNally
https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc File extensions/browser/extension_web_contents_observer.cc (right): https://codereview.chromium.org/652793002/diff/120001/extensions/browser/extension_web_contents_observer.cc#newcode33 extensions/browser/extension_web_contents_observer.cc:33: if (known_render_frame_hosts_.count(render_frame_host)) On 2014/10/20 02:12:55, raymes wrote: > Given ...
6 years, 2 months ago (2014-10-22 02:04:29 UTC) #14
raymes
lgtm https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.cc File extensions/browser/mojo/service_registration_manager.cc (right): https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.cc#newcode75 extensions/browser/mojo/service_registration_manager.cc:75: .is_available()) { nit: can we pull this out ...
6 years, 1 month ago (2014-10-23 22:12:56 UTC) #15
Sam McNally
Ken: can you review for OWNERS https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.cc File extensions/browser/mojo/service_registration_manager.cc (right): https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.cc#newcode75 extensions/browser/mojo/service_registration_manager.cc:75: .is_available()) { On ...
6 years, 1 month ago (2014-10-23 23:31:17 UTC) #17
raymes
https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.h File extensions/browser/mojo/service_registration_manager.h (right): https://codereview.chromium.org/652793002/diff/340001/extensions/browser/mojo/service_registration_manager.h#newcode37 extensions/browser/mojo/service_registration_manager.h:37: const base::Callback<void(mojo::InterfaceRequest<Interface>)>& factory) I'd still like to revisit this ...
6 years, 1 month ago (2014-10-23 23:59:51 UTC) #18
Ken Rockot(use gerrit already)
lgtm https://codereview.chromium.org/652793002/diff/380001/extensions/browser/mojo/service_registration_manager.h File extensions/browser/mojo/service_registration_manager.h (right): https://codereview.chromium.org/652793002/diff/380001/extensions/browser/mojo/service_registration_manager.h#newcode37 extensions/browser/mojo/service_registration_manager.h:37: const base::Callback<void(mojo::InterfaceRequest<Interface>)>& factory) I agree with Raymes on ...
6 years, 1 month ago (2014-10-24 16:36:14 UTC) #19
Sam McNally
+benwells for extensions/browser/DEPS. https://codereview.chromium.org/652793002/diff/380001/extensions/browser/mojo/service_registration_manager.h File extensions/browser/mojo/service_registration_manager.h (right): https://codereview.chromium.org/652793002/diff/380001/extensions/browser/mojo/service_registration_manager.h#newcode72 extensions/browser/mojo/service_registration_manager.h:72: const std::string& permission_name, On 2014/10/24 16:36:14, ...
6 years, 1 month ago (2014-10-26 23:17:31 UTC) #21
benwells
lgtm
6 years, 1 month ago (2014-10-27 02:03:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/652793002/420001
6 years, 1 month ago (2014-10-27 02:12:19 UTC) #24
commit-bot: I haz the power
Committed patchset #13 (id:420001)
6 years, 1 month ago (2014-10-27 02:54:47 UTC) #25
commit-bot: I haz the power
6 years, 1 month ago (2014-10-27 02:55:41 UTC) #26
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/d92097b170dd8bf44cbef31fa5fae5d523d1c651
Cr-Commit-Position: refs/heads/master@{#301310}

Powered by Google App Engine
This is Rietveld 408576698