tree: 935554549e54186436b179ffe4d8d218bac9395d [path history] [tgz]
  1. browser_init_params.cc
  2. browser_init_params.h
  3. browser_params_proxy.cc
  4. browser_params_proxy.h
  5. browser_postlogin_params.cc
  6. browser_postlogin_params.h
  7. BUILD.gn
  8. OWNERS
  9. README.md
  10. startup.cc
  11. startup.h
  12. startup_switches.cc
  13. startup_switches.h
  14. startup_unittest.cc
chromeos/startup/README.md

This directory is concerned with the management of Lacros's startup parameters.

Startup parameters are passed by Ash's BrowserManager to Lacros via memfds. The fd numbers are passed to Lacros via command line arguments defined in startup_switches.

Startup parameters belong to two classes: BrowserInitParams and BrowserPostLoginParams. That's because Lacros supports being pre-launched at login screen, when user-specific parameters are not known yet. Accessing startup parameters via BrowserPostLoginParams before login blocks, waiting for login.

BrowserInitParams and BrowserPostLoginParams are not to be used directly. Instead, Lacros code should use BrowserParamsProxy which dispatches to either BrowserInitParams and BrowserPostLoginParams based on whether Lacros was prelaunched at login screen or not.