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

Issue 2338063002: chromeos: Refactor D-Bus client type enum and stub vs. fake naming (Closed)

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

Description

chromeos: Refactor D-Bus client type enum and stub vs. fake naming This is needed for other //chromeos/dbus refactoring for mus+ash. * Rename stub to fake in DBusThreadManager and DBusClientBundle for consistency with the Fake*Client implementations * Extract DBusClientType into its own file * Move --dbus-unstub-clients parsing into the same file so that the client name strings are near the enum * Add some simple unit tests for DBusThreadManager initialization No functional changes. BUG=644414 TEST=chromeos_unittests TBR=peter@chromium.org Committed: https://crrev.com/2b590999a25934d555ca191a2ad2f3e802a86203 Cr-Commit-Position: refs/heads/master@{#418569}

Patch Set 1 #

Patch Set 2 : cleanup #

Total comments: 2

Patch Set 3 : rebase #

Patch Set 4 : review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+344 lines, -247 lines) Patch
M ash/mus/window_manager_application.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M ash/test/ash_test_helper.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/easy_unlock_private/easy_unlock_private_api_chromeos_unittest.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/test/base/testing_io_thread_state.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/test/base/view_event_test_platform_part_chromeos.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chromeos/chromeos.gyp View 3 chunks +4 lines, -2 lines 0 comments Download
M chromeos/chromeos_switches.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/chromeos_switches.cc View 1 2 3 1 chunk +7 lines, -2 lines 0 comments Download
M chromeos/dbus/cros_disks_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/cros_disks_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/dbus_client.h View 1 chunk +1 line, -0 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle.h View 3 chunks +9 lines, -37 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle.cc View 5 chunks +37 lines, -94 lines 0 comments Download
M chromeos/dbus/dbus_client_bundle_unittest.cc View 1 2 3 1 chunk +50 lines, -25 lines 0 comments Download
D chromeos/dbus/dbus_client_implementation_type.h View 1 chunk +0 lines, -18 lines 0 comments Download
A chromeos/dbus/dbus_client_types.h View 1 2 3 1 chunk +54 lines, -0 lines 0 comments Download
A chromeos/dbus/dbus_client_types.cc View 1 2 3 1 chunk +69 lines, -0 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.h View 1 5 chunks +13 lines, -14 lines 0 comments Download
M chromeos/dbus/dbus_thread_manager.cc View 1 2 3 5 chunks +31 lines, -28 lines 0 comments Download
A chromeos/dbus/dbus_thread_manager_unittest.cc View 1 chunk +32 lines, -0 lines 0 comments Download
M chromeos/dbus/power_manager_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/power_manager_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/update_engine_client.h View 1 chunk +1 line, -1 line 0 comments Download
M chromeos/dbus/update_engine_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/shell/browser/shell_browser_main_parts.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M extensions/shell/browser/shell_browser_main_parts.cc View 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 28 (17 generated)
James Cook
stevenjb, please take a look. hashimoto, FYI. I left things related to the --dbus-unstub-clients switch ...
4 years, 3 months ago (2016-09-13 20:54:36 UTC) #4
stevenjb
Thanks for doing the cleanup and adding tests! LGTM with two minor changes: * Rename ...
4 years, 3 months ago (2016-09-13 21:31:49 UTC) #7
James Cook
I also: * added --dbus-real-clients * added an error if you use --dbus-unstub-clients * left ...
4 years, 3 months ago (2016-09-13 22:04:18 UTC) #10
James Cook
sky, can I get a rubber-stamp for a rename touching //chrome/test and a couple places ...
4 years, 3 months ago (2016-09-13 22:08:51 UTC) #12
stevenjb
Changes lgtm, thanks!
4 years, 3 months ago (2016-09-13 22:34:43 UTC) #15
sky
LGTM
4 years, 3 months ago (2016-09-14 02:58:10 UTC) #18
James Cook
TBR peter@chromium.org for a chromeos dbus function rename touching content/shell/browser/shell_browser_main_parts.cc
4 years, 3 months ago (2016-09-14 15:22:38 UTC) #20
James Cook
TBR peter@chromium.org for a chromeos dbus function rename touching content/shell/browser/shell_browser_main_parts.cc
4 years, 3 months ago (2016-09-14 15:23:25 UTC) #22
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/2338063002/60001
4 years, 3 months ago (2016-09-14 15:23:44 UTC) #24
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-14 15:29:05 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-14 15:30:53 UTC) #28
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/2b590999a25934d555ca191a2ad2f3e802a86203
Cr-Commit-Position: refs/heads/master@{#418569}

Powered by Google App Engine
This is Rietveld 408576698