Where is `startup_data`?

136 views
Skip to first unread message

Josh

unread,
Jul 19, 2025, 1:21:07 PM7/19/25
to Chromium-dev
Hi,

I'm working on a custom Chromium build and running into an issue with `ChromeMainDelegate::PostEarlyInitialization`, which tries to dereference `startup_data`. In my case, it's `0x30`, and I can't figure out why.

I've searched the codebase for where `startup_data` is initialized. The only relevant reference I found was `MojoIpcSupport::CreateBrowserStartupData`, but it's not clear how that connects to `ChromeContentBrowserClient`, which doesn’t seem to take `startup_data` in its constructor, yet somehow has access to it later.

Does anyone know where `startup_data` is supposed to be set, or what I might be missing?

Thanks,  
Josh

Josh

unread,
Jul 19, 2025, 6:06:40 PM7/19/25
to Chromium-dev, Josh
never mind, figured it out :D

Lei Zhang

unread,
Jul 22, 2025, 12:57:24 PM7/22/25
to jos...@brest.org, Chromium-dev
HI,

Chromium Code Search [1] can help you find content::StartupData in
content/public/common/startup_data.h and StartupData in
chrome/browser/startup_data.h.

[1] https://source.chromium.org/chromium
> --
> --
> Chromium Developers mailing list: chromi...@chromium.org
> View archives, change email options, or unsubscribe:
> http://groups.google.com/a/chromium.org/group/chromium-dev
> ---
> You received this message because you are subscribed to the Google Groups "Chromium-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to chromium-dev...@chromium.org.
> To view this discussion visit https://groups.google.com/a/chromium.org/d/msgid/chromium-dev/ee821107-b87e-41ba-9272-86c49338643dn%40chromium.org.
Reply all
Reply to author
Forward
0 new messages