commit | 162b9fc963271a39c42cd6d0a16fdebc3d46f43c | [log] [tgz] |
---|---|---|
author | Tom Anderson <thomasanderson@chromium.org> | Tue Oct 15 05:20:09 2024 |
committer | Chromium LUCI CQ <chromium-scoped@luci-project-accounts.iam.gserviceaccount.com> | Tue Oct 15 05:20:09 2024 |
tree | a4cc0694271b9c72a83d33576864b69155588f4b | |
parent | 0b55b16a6a813bba90b737da8fdab9bf1f69a28e [diff] |
Add dbus_utils::CheckForServiceAndStart This is extracted from the following places: * chrome/browser/notifications/notification_platform_bridge_linux.cc * chrome/browser/platform_util_linux.cc * chrome/browser/dbus_memory_pressure_evaluator_linux.cc * ui/shell_dialogs/select_file_dialog_linux_portal.cc Also, there are more places that should be auto-starting that were not. Followup CLs will refactor existing usages to use NameHasOwner(). The motivation for this CL is to deduplicate logic from the above locations and to autostart in places that have not yet implemented autostarting. Also check_for_service_and_start_unittest.cc is added. Change-Id: I949e7abbce0eed5d5eb24c4204d7e06c29df2c61 Bug: None Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5906079 Auto-Submit: Thomas Anderson <thomasanderson@chromium.org> Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org> Commit-Queue: Ryo Hashimoto <hashimoto@chromium.org> Cr-Commit-Position: refs/heads/main@{#1368599}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
To check out the source code locally, don't use git clone
! Instead, follow the instructions on how to get the code.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure.
For historical reasons, there are some small top level directories. Now the guidance is that new top level directories are for product (e.g. Chrome, Android WebView, Ash). Even if these products have multiple executables, the code should be in subdirectories of the product.
If you found a bug, please file it at https://crbug.com/new.