Descriptionchromeos: Refactor D-Bus client creation for ash and browser processes
In mustash we need to have some D-Bus clients in the ash window manager
process and some in the browser process. In traditional ash we need everything
in the browser process. Allow per-process initialization of subsets of clients.
* Split ownership of clients into DBusClientsBrowser, DBusClientsAsh and
DBusClientsCommon
* Make DBusThreadManager::Initialize() take a process enum. This isn't great,
but see code review comments
* Remove unnecessary setters from DBusThreadManagerSetter
* Use ash/DEPS to restrict which clients can be used in //ash
* Only initialize ash clients in ash_unittests
* When running in mustash, limit which clients are initialized in the ash
and browser processes
This is a transitional step toward cleaner multi-process initialization of
clients as discussed in go/chromeos-dbus-clients option (G)
BUG=644414, 647367
TEST=chromeos_unittests, ash_unittests
Committed: https://crrev.com/dd6183891740c725a872def6aaf07e51d4f2d723
Cr-Commit-Position: refs/heads/master@{#419481}
Patch Set 1 #Patch Set 2 : cleanup, extend tests #
Total comments: 5
Patch Set 3 : Wrong ShellBrowserMainParts #Patch Set 4 : rebase #Patch Set 5 : Move SMS back to common, eliminate DBusClientsAsh #Patch Set 6 : Update unit test #Patch Set 7 : rebase #
Dependent Patchsets: Messages
Total messages: 28 (18 generated)
|