Re: Question about servicifying a feature (Chrome queries Updater's policy)

247 views
Skip to first unread message

Colin Blundell

unread,
Feb 17, 2025, 7:37:46 AMFeb 17
to Xiaoling Bao, chromium-mojo, Colin Blundell, servic...@chromium.org


On Fri, Feb 14, 2025 at 8:55 PM Xiaoling Bao <xiaol...@google.com> wrote:
May I ask another question?

I took a look at the existing services at //chrome/services, It looks that the server processes are launched indirectly, via ServiceProcessHost::Launch(), is that correct? If so, I don't see a way to specify the server process image path. Does it always assume chrome.exe is the image? What if I want to use another image to host the mojom server, say updater.exe?

Ah, that's an area that I'm not familiar with. +chromium-mojo to broaden the set of folks seeing this message.
 

On Fri, Feb 14, 2025 at 9:30 AM Xiaoling Bao <xiaol...@google.com> wrote:
Thank you for confirming. I'll give it a try.

On Fri, Feb 14, 2025 at 4:36 AM Colin Blundell <blun...@chromium.org> wrote:
Thanks! Putting it as a service in //chromes/services makes sense to me in that case.

On Thu, Feb 13, 2025 at 6:58 PM Xiaoling Bao <xiaol...@google.com> wrote:
Yes, exactly. 

On Thu, Feb 13, 2025 at 2:50 AM Colin Blundell <blun...@chromium.org> wrote:
Thanks! To make sure that I'm understanding correctly, is the idea that when the chrome://policy page is loaded the browser process would spin up the updater process for the duration of time that the browser needs to query it for its policies, and the browser would then shut down the updater process once it receives those results back?

Best,

Colin

On Wed, Feb 12, 2025 at 7:58 PM 'Xiaoling Bao' via services-dev <servic...@chromium.org> wrote:
Hi chromium-service experts,

I'm working on a feature that allows the Chrome browser to query Updater's policy and display the result in chrome://policy page.

A few relevant information:
  • Updater is a standalone process built from //chrome/updater, it's not a long-running one.
  • Updater has its own logic to compute its policies. Thus Chrome needs to query the policies by talking to Updater. This is different from most other policies, which Chrome can read/understand directly.
We plan to use mojom as the IPC mechanism between Chrome and Updater. I'd imagine that the IPC server runs inside Updater, and Chrome needs to bootstrap Updater. Does it make sense to servicify this feature? If yes, what's a good candidate location for the service code?

--
Xiaoling

--
You received this message because you are subscribed to the Google Groups "services-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to services-dev...@chromium.org.
To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/services-dev/CAPS8q%2B8h4VOL_oWQ-MyF3o4TeDKYGqpDK-M8SB98JLqFoA58Ow%40mail.gmail.com.


--
Xiaoling


--
Xiaoling


--
Xiaoling

Alex Gough

unread,
Feb 27, 2025, 5:41:21 PMFeb 27
to chromium-mojo, Colin Blundell, servic...@chromium.org, Xiaoling Bao


Yes, exactly. 

To unsubscribe from this group and stop receiving emails from it, send an email to services-dev+unsubscribe@chromium.org.


--
Xiaoling


--
Xiaoling


--
Xiaoling
Reply all
Reply to author
Forward
0 new messages