Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(44)

Issue 2343993003: chromeos: Refactor D-Bus client creation for ash and browser processes (Closed)

Created:
4 years, 3 months ago by James Cook
Modified:
4 years, 3 months ago
Reviewers:
stevenjb
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, sadrul, hashimoto+watch_chromium.org, Peter Beverloo, jam, darin-cc_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, kalyank, jochen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+494 lines, -593 lines) Patch
M ash/DEPS View 1 chunk +9 lines, -0 lines 0 comments Download
M ash/mus/window_manager_application.cc View 1 chunk +2 lines, -1 line 0 comments Download
M ash/shell/content/client/shell_browser_main_parts.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M ash/test/ash_test_helper.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 1 chunk +6 lines, -1 line 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chromeos/dbus/dbus_client.h View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
D chromeos/dbus/dbus_client_bundle.h View 1 chunk +0 lines, -182 lines 0 comments Download
D chromeos/dbus/dbus_client_bundle.cc View 1 chunk +0 lines, -181 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle_unittest.cc View 1 2 chunks +0 lines, -22 lines 0 comments Download
A chromeos/dbus/dbus_clients_browser.h View 1 chunk +55 lines, -0 lines 0 comments Download
A chromeos/dbus/dbus_clients_browser.cc View 1 chunk +76 lines, -0 lines 0 comments Download
A chromeos/dbus/dbus_clients_common.h View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download
A + chromeos/dbus/dbus_clients_common.cc View 1 2 3 4 5 chunks +24 lines, -54 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 7 chunks +32 lines, -16 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 8 chunks +91 lines, -130 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager_unittest.cc View 1 2 3 4 5 2 chunks +107 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 28 (18 generated)
James Cook
Steven, please take a look. This is a compromise first step. It does not move ...
4 years, 3 months ago (2016-09-15 22:23:10 UTC) #6
stevenjb
This seems like a very good compromise, thanks James for taking the time to gather ...
4 years, 3 months ago (2016-09-16 15:18:00 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343993003/60001
4 years, 3 months ago (2016-09-16 16:21:18 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/236954)
4 years, 3 months ago (2016-09-16 17:09:01 UTC) #12
James Cook
Steven, please take another look. I had to move the SMS stuff back into the ...
4 years, 3 months ago (2016-09-16 23:36:11 UTC) #15
stevenjb
On 2016/09/16 23:36:11, James Cook wrote: > Steven, please take another look. > > I ...
4 years, 3 months ago (2016-09-19 16:22:45 UTC) #20
stevenjb
LGTM Let's plan to prioritize moving SMS to the message center instead, then we can ...
4 years, 3 months ago (2016-09-19 16:24:47 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343993003/120001
4 years, 3 months ago (2016-09-19 16:36:59 UTC) #24
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 3 months ago (2016-09-19 16:42:30 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-19 16:47:02 UTC) #28
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/dd6183891740c725a872def6aaf07e51d4f2d723
Cr-Commit-Position: refs/heads/master@{#419481}

Powered by Google App Engine
This is Rietveld 408576698