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

Issue 444263002: Added switch that let us 'un-stub' certain dbus clients. (Closed)

Created:
6 years, 4 months ago by zel
Modified:
6 years, 4 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, oshima+watch_chromium.org, nkostylev+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Added switch that let us 'un-stub' certain dbus clients. Usage: chrome --dbus-stub --dbus-unstub-clients=client_1[,client_2[,...]] where <client_n> is in from the set of (bluetooth, cras, cros_disks, cryptohome, debug_daemon, easy_unlock, lorgnette_manager, shill, gsm_sms, imageburner, introspectable, modem_messaging, nfc, permission_broker, power_manager, session_manager, sms, system_clock, update_engine) BUG=401192 TEST=manual + DBusClientBundle.UnstubFlagParser Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289485

Patch Set 1 #

Patch Set 2 : #

Total comments: 18

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : rebase #

Total comments: 42

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : #

Total comments: 10

Patch Set 12 : #

Total comments: 6

Patch Set 13 : #

Total comments: 8

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : #

Patch Set 17 : #

Patch Set 18 : test fixes #

Total comments: 1

Patch Set 19 : #

Patch Set 20 : #

Total comments: 6

Patch Set 21 : #

Patch Set 22 : #

Patch Set 23 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+905 lines, -221 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos.gyp View 1 2 3 4 5 6 7 3 chunks +5 lines, -0 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +4 lines, -0 lines 0 comments Download
M chromeos/dbus/bluetooth_agent_service_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/bluetooth_gatt_characteristic_service_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/bluetooth_gatt_descriptor_service_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/bluetooth_gatt_service_service_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 2 chunks +2 lines, -2 lines 0 comments Download
M chromeos/dbus/bluetooth_profile_service_provider.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
A chromeos/dbus/dbus_client_bundle.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +274 lines, -0 lines 0 comments Download
A chromeos/dbus/dbus_client_bundle.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +205 lines, -0 lines 0 comments Download
A chromeos/dbus/dbus_client_bundle_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 1 chunk +40 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +15 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 8 chunks +60 lines, -210 lines 0 comments Download
A chromeos/dbus/mixed_dbus_thread_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +81 lines, -0 lines 0 comments Download
A chromeos/dbus/mixed_dbus_thread_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 1 chunk +205 lines, -0 lines 0 comments Download
M device/bluetooth/bluetooth_chromeos_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 46 (0 generated)
zel
6 years, 4 months ago (2014-08-07 00:05:33 UTC) #1
satorux1
+stevenjb@ and +hashimoto@ as I'll be ooo on Friday. https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc File chromeos/dbus/dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc#newcode68 chromeos/dbus/dbus_thread_manager.cc:68: ...
6 years, 4 months ago (2014-08-07 20:00:06 UTC) #2
stevenjb
https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc File chromeos/dbus/dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc#newcode821 chromeos/dbus/dbus_thread_manager.cc:821: This class is large enough that we should really ...
6 years, 4 months ago (2014-08-07 20:20:32 UTC) #3
zel
https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc File chromeos/dbus/dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc#newcode68 chromeos/dbus/dbus_thread_manager.cc:68: BluetoothLowEnergy = 1 << 2, On 2014/08/07 20:00:05, satorux1 ...
6 years, 4 months ago (2014-08-07 21:40:45 UTC) #4
stevenjb
lgtm w/ one nit https://codereview.chromium.org/444263002/diff/60001/chromeos/dbus/mixed_dbus_thread_manager.cc File chromeos/dbus/mixed_dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/60001/chromeos/dbus/mixed_dbus_thread_manager.cc#newcode23 chromeos/dbus/mixed_dbus_thread_manager.cc:23: real_thread_manager_->AddObserver(observer); It doesn't look like ...
6 years, 4 months ago (2014-08-07 21:58:48 UTC) #5
zel
https://codereview.chromium.org/444263002/diff/60001/chromeos/dbus/mixed_dbus_thread_manager.cc File chromeos/dbus/mixed_dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/60001/chromeos/dbus/mixed_dbus_thread_manager.cc#newcode23 chromeos/dbus/mixed_dbus_thread_manager.cc:23: real_thread_manager_->AddObserver(observer); On 2014/08/07 21:58:48, stevenjb wrote: > It doesn't ...
6 years, 4 months ago (2014-08-07 22:36:57 UTC) #6
zel
https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc File chromeos/dbus/dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/20001/chromeos/dbus/dbus_thread_manager.cc#newcode582 chromeos/dbus/dbus_thread_manager.cc:582: unstub_mask_ |= client; On 2014/08/07 20:00:05, satorux1 wrote: > ...
6 years, 4 months ago (2014-08-07 23:16:18 UTC) #7
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-08 01:06:28 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/120001
6 years, 4 months ago (2014-08-08 01:13:26 UTC) #9
chromium-reviews
I only got part way through trying this patch today using bluez_5.21-2_amd64.deb <http://ftp.us.debian.org/debian/pool/main/b/bluez/bluez_5.21-2_amd64.deb> and I ...
6 years, 4 months ago (2014-08-08 02:06:11 UTC) #10
hashimoto
https://codereview.chromium.org/444263002/diff/120001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/chromeos.gyp#newcode118 chromeos/chromeos.gyp:118: 'dbus/dbus_client_bundle.h', nit: sort https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc#newcode122 chromeos/dbus/dbus_client_bundle.cc:122: ...
6 years, 4 months ago (2014-08-08 02:06:16 UTC) #11
zel
The CQ bit was unchecked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-08 02:25:45 UTC) #12
hashimoto
https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc#newcode181 chromeos/dbus/dbus_client_bundle.cc:181: update_engine_client_.reset(UpdateEngineClient::Create(type)); It seems POWER_POLICY is not handled. https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.h File ...
6 years, 4 months ago (2014-08-08 07:08:45 UTC) #13
zel
https://codereview.chromium.org/444263002/diff/120001/chromeos/chromeos.gyp File chromeos/chromeos.gyp (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/chromeos.gyp#newcode118 chromeos/chromeos.gyp:118: 'dbus/dbus_client_bundle.h', On 2014/08/08 02:06:15, hashimoto wrote: > nit: sort ...
6 years, 4 months ago (2014-08-08 19:00:15 UTC) #14
satorux1
https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/dbus_client_bundle.cc#newcode181 chromeos/dbus/dbus_client_bundle.cc:181: update_engine_client_.reset(UpdateEngineClient::Create(type)); On 2014/08/08 19:00:14, zel wrote: > On 2014/08/08 ...
6 years, 4 months ago (2014-08-11 01:52:10 UTC) #15
hashimoto
https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/mixed_dbus_thread_manager.h File chromeos/dbus/mixed_dbus_thread_manager.h (right): https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/mixed_dbus_thread_manager.h#newcode18 chromeos/dbus/mixed_dbus_thread_manager.h:18: class CHROMEOS_EXPORT MixedDBusThreadManager : public DBusThreadManager { On 2014/08/08 ...
6 years, 4 months ago (2014-08-11 11:01:05 UTC) #16
zel
On 2014/08/11 11:01:05, hashimoto wrote: > https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/mixed_dbus_thread_manager.h > File chromeos/dbus/mixed_dbus_thread_manager.h (right): > > https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/mixed_dbus_thread_manager.h#newcode18 > ...
6 years, 4 months ago (2014-08-12 01:41:01 UTC) #17
zel
I will address remaining hashimoto's comments (from https://codereview.chromium.org/444263002/diff/120001/chromeos/dbus/mixed_dbus_thread_manager.h#newcode18) in another CL. It's simple to centralize ...
6 years, 4 months ago (2014-08-12 17:32:32 UTC) #18
satorux1
LGTM with nits and a question https://codereview.chromium.org/444263002/diff/220001/chromeos/dbus/dbus_client_bundle_unittest.cc File chromeos/dbus/dbus_client_bundle_unittest.cc (right): https://codereview.chromium.org/444263002/diff/220001/chromeos/dbus/dbus_client_bundle_unittest.cc#newcode15 chromeos/dbus/dbus_client_bundle_unittest.cc:15: DBusClientBundle::UNKNOWN); per gtest.h, ...
6 years, 4 months ago (2014-08-13 01:09:20 UTC) #19
zel
https://codereview.chromium.org/444263002/diff/220001/chromeos/dbus/dbus_client_bundle_unittest.cc File chromeos/dbus/dbus_client_bundle_unittest.cc (right): https://codereview.chromium.org/444263002/diff/220001/chromeos/dbus/dbus_client_bundle_unittest.cc#newcode15 chromeos/dbus/dbus_client_bundle_unittest.cc:15: DBusClientBundle::UNKNOWN); On 2014/08/13 01:09:20, satorux1 wrote: > per gtest.h, ...
6 years, 4 months ago (2014-08-13 01:36:03 UTC) #20
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 01:37:19 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/240001
6 years, 4 months ago (2014-08-13 01:43:38 UTC) #22
zel
The CQ bit was unchecked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 01:44:32 UTC) #23
hashimoto
lgtm https://codereview.chromium.org/444263002/diff/200001/chromeos/dbus/dbus_client_bundle.h File chromeos/dbus/dbus_client_bundle.h (right): https://codereview.chromium.org/444263002/diff/200001/chromeos/dbus/dbus_client_bundle.h#newcode81 chromeos/dbus/dbus_client_bundle.h:81: ALL_CLIENTS = 0xFFFFFFFF, On 2014/08/12 17:32:32, zel wrote: ...
6 years, 4 months ago (2014-08-13 06:14:49 UTC) #24
zel
https://codereview.chromium.org/444263002/diff/200001/chromeos/dbus/dbus_client_bundle.h File chromeos/dbus/dbus_client_bundle.h (right): https://codereview.chromium.org/444263002/diff/200001/chromeos/dbus/dbus_client_bundle.h#newcode81 chromeos/dbus/dbus_client_bundle.h:81: ALL_CLIENTS = 0xFFFFFFFF, On 2014/08/13 06:14:48, hashimoto wrote: > ...
6 years, 4 months ago (2014-08-13 17:57:44 UTC) #25
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 17:57:48 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/260001
6 years, 4 months ago (2014-08-13 17:58:42 UTC) #27
zel
The CQ bit was unchecked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 18:15:49 UTC) #28
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 18:18:58 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/300001
6 years, 4 months ago (2014-08-13 18:20:19 UTC) #30
zel
The CQ bit was unchecked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 18:25:17 UTC) #31
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 18:25:33 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/320001
6 years, 4 months ago (2014-08-13 18:27:50 UTC) #33
armansito
https://codereview.chromium.org/444263002/diff/340001/device/bluetooth/bluetooth_chromeos_unittest.cc File device/bluetooth/bluetooth_chromeos_unittest.cc (right): https://codereview.chromium.org/444263002/diff/340001/device/bluetooth/bluetooth_chromeos_unittest.cc#newcode238 device/bluetooth/bluetooth_chromeos_unittest.cc:238: DBusThreadManager::InitializeForTesting(fake_dbus_thread_manager); Can you add a note here explaining why ...
6 years, 4 months ago (2014-08-13 20:59:28 UTC) #34
armansito
device/bluetooth/bluetooth_chromeos_unittest.cc lgtm
6 years, 4 months ago (2014-08-13 21:06:44 UTC) #35
armansito
https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc#newcode57 chromeos/dbus/dbus_client_bundle.cc:57: { "bluetooth_low_energy", DBusClientBundle::BLUETOOTH_LOW_ENERGY }, What's the reason for having ...
6 years, 4 months ago (2014-08-13 21:09:13 UTC) #36
armansito
https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/mixed_dbus_thread_manager.cc File chromeos/dbus/mixed_dbus_thread_manager.cc (right): https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/mixed_dbus_thread_manager.cc#newcode43 chromeos/dbus/mixed_dbus_thread_manager.cc:43: DBusClientBundle::BLUETOOTH)->GetBluetoothGattCharacteristicClient(); Shouldn't this also be BLUETOOTH_LOW_ENERGY?
6 years, 4 months ago (2014-08-13 21:39:07 UTC) #37
zel
https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc#newcode57 chromeos/dbus/dbus_client_bundle.cc:57: { "bluetooth_low_energy", DBusClientBundle::BLUETOOTH_LOW_ENERGY }, On 2014/08/13 21:09:13, armansito wrote: ...
6 years, 4 months ago (2014-08-13 22:22:41 UTC) #38
armansito
https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc#newcode57 chromeos/dbus/dbus_client_bundle.cc:57: { "bluetooth_low_energy", DBusClientBundle::BLUETOOTH_LOW_ENERGY }, On 2014/08/13 22:22:40, zel wrote: ...
6 years, 4 months ago (2014-08-13 22:28:46 UTC) #39
zel
https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/444263002/diff/380001/chromeos/dbus/dbus_client_bundle.cc#newcode57 chromeos/dbus/dbus_client_bundle.cc:57: { "bluetooth_low_energy", DBusClientBundle::BLUETOOTH_LOW_ENERGY }, On 2014/08/13 22:28:46, armansito wrote: ...
6 years, 4 months ago (2014-08-13 22:35:54 UTC) #40
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 22:36:04 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/420001
6 years, 4 months ago (2014-08-13 22:37:47 UTC) #42
armansito
lgtm
6 years, 4 months ago (2014-08-13 22:38:39 UTC) #43
zel
The CQ bit was checked by zelidrag@chromium.org
6 years, 4 months ago (2014-08-13 22:55:03 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/zelidrag@chromium.org/444263002/440001
6 years, 4 months ago (2014-08-13 22:57:23 UTC) #45
commit-bot: I haz the power
6 years, 4 months ago (2014-08-14 08:00:40 UTC) #46
Message was sent while issue was closed.
Committed patchset #23 (440001) as 289485

Powered by Google App Engine
This is Rietveld 408576698