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

Issue 556833003: Fix minor issues about DBusThreadManager. (Closed)

Created:
6 years, 3 months ago by pneubeck (no reviews)
Modified:
6 years, 3 months ago
Reviewers:
satorux1, hashimoto
CC:
chromium-reviews, stevenjb+watch_chromium.org, hashimoto+watch_chromium.org, oshima+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Fix minor issues about DBusThreadManager. - Remove the global unstub_client_mask_ and accordingly make DBusThreadManager::IsUsingStub a non-static function. This makes it obvious when it's ok to call this function (and prevents misuse), namely only after the Manager is initialized. - By moving the mask to the DBusClientBundle, the cyclic dependency between bundle and manager is broken. The Bundle does not know about the Manager anymore. - Fix the difference between DBusClientTypeMask ("A set of DBusClients") and DBusClientType ("A single DBusClient"). BUG=408617 Committed: https://crrev.com/ef009f18ca95c0d7b3b4a330c190a2f24b29e003 Cr-Commit-Position: refs/heads/master@{#294361}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : #

Patch Set 3 : Rebased. #

Total comments: 4

Patch Set 4 : Addressed comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -102 lines) Patch
M chromeos/dbus/bluetooth_adapter_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/bluetooth_agent_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_device_client.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chromeos/dbus/bluetooth_gatt_characteristic_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_gatt_descriptor_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_gatt_service_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_input_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/bluetooth_profile_service_provider.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/dbus_client_bundle.h View 1 4 chunks +14 lines, -5 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle.cc View 1 7 chunks +40 lines, -36 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle_unittest.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 2 3 3 chunks +18 lines, -18 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 8 chunks +25 lines, -33 lines 0 comments Download

Messages

Total messages: 16 (5 generated)
pneubeck (no reviews)
This is smaller cleanup about issues that I stumbled upon while working on the real ...
6 years, 3 months ago (2014-09-09 12:48:15 UTC) #5
satorux1
https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/bluetooth_adapter_client.cc File chromeos/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/bluetooth_adapter_client.cc#newcode54 chromeos/dbus/bluetooth_adapter_client.cc:54: : object_manager_(NULL), weak_ptr_factory_(this) {} good catch! thank you for ...
6 years, 3 months ago (2014-09-10 05:25:33 UTC) #6
hashimoto
https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/dbus_client_bundle.h File chromeos/dbus/dbus_client_bundle.h (right): https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/dbus_client_bundle.h#newcode89 chromeos/dbus/dbus_client_bundle.h:89: // Returns true if any regular DBusClient is used. ...
6 years, 3 months ago (2014-09-10 06:01:28 UTC) #7
pneubeck (no reviews)
https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/bluetooth_adapter_client.cc File chromeos/dbus/bluetooth_adapter_client.cc (right): https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/bluetooth_adapter_client.cc#newcode54 chromeos/dbus/bluetooth_adapter_client.cc:54: : object_manager_(NULL), weak_ptr_factory_(this) {} On 2014/09/10 05:25:33, satorux1 wrote: ...
6 years, 3 months ago (2014-09-10 07:58:13 UTC) #8
pneubeck (no reviews)
ptal
6 years, 3 months ago (2014-09-10 21:35:10 UTC) #9
satorux1
LGTM https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/dbus_client_bundle.cc File chromeos/dbus/dbus_client_bundle.cc (right): https://codereview.chromium.org/556833003/diff/60001/chromeos/dbus/dbus_client_bundle.cc#newcode83 chromeos/dbus/dbus_client_bundle.cc:83: ~static_cast<DBusClientBundle::DBusClientTypeMask>(0); On 2014/09/10 07:58:13, pneubeck wrote: > I ...
6 years, 3 months ago (2014-09-11 04:23:30 UTC) #10
hashimoto
lgtm https://codereview.chromium.org/556833003/diff/100001/chromeos/dbus/dbus_thread_manager.h File chromeos/dbus/dbus_thread_manager.h (right): https://codereview.chromium.org/556833003/diff/100001/chromeos/dbus/dbus_thread_manager.h#newcode158 chromeos/dbus/dbus_thread_manager.h:158: DBusThreadManager(scoped_ptr<DBusClientBundle> client_bundle); 'explicit' missing? https://codereview.chromium.org/556833003/diff/100001/chromeos/dbus/dbus_thread_manager.h#newcode181 chromeos/dbus/dbus_thread_manager.h:181: // creates ...
6 years, 3 months ago (2014-09-11 06:50:46 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/556833003/120001
6 years, 3 months ago (2014-09-11 08:08:14 UTC) #13
pneubeck (no reviews)
https://codereview.chromium.org/556833003/diff/100001/chromeos/dbus/dbus_thread_manager.h File chromeos/dbus/dbus_thread_manager.h (right): https://codereview.chromium.org/556833003/diff/100001/chromeos/dbus/dbus_thread_manager.h#newcode158 chromeos/dbus/dbus_thread_manager.h:158: DBusThreadManager(scoped_ptr<DBusClientBundle> client_bundle); On 2014/09/11 06:50:45, hashimoto wrote: > 'explicit' ...
6 years, 3 months ago (2014-09-11 08:08:19 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:120001) as d8ea9768d7fb138307c5d3b5a4faf59be28744e1
6 years, 3 months ago (2014-09-11 09:09:39 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 09:11:39 UTC) #16
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/ef009f18ca95c0d7b3b4a330c190a2f24b29e003
Cr-Commit-Position: refs/heads/master@{#294361}

Powered by Google App Engine
This is Rietveld 408576698