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

Issue 2889683006: Misc refactoring of SessionManagerClient. (Closed)

Created:
3 years, 7 months ago by hidehiko
Modified:
3 years, 7 months ago
Reviewers:
hashimoto
CC:
chromium-reviews, oshima+watch_chromium.org, hashimoto+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Misc refactoring of SessionManagerClient. - In ObjectProxy::CallMethod, in case of error, always LOG. - SessionManagerClientImpl's dbus call error logging is now relying on ObjectProxy, so use EmptyResponseCallback wherever possible. - Introduce OnNoOutputParamResponse(), for sharing the code (OnStorePolicy and OnArcMethod). - Use nullptr instead of NULL. - Use "= default" for ctor and dtor if possible. - Initialize member var on declaration, if possible. BUG=n/a TEST=Ran trybots. Review-Url: https://codereview.chromium.org/2889683006 Cr-Commit-Position: refs/heads/master@{#473513} Committed: https://chromium.googlesource.com/chromium/src/+/6c197efb6eaff2b3fee5e037ba53791000e400b2

Patch Set 1 #

Total comments: 4

Patch Set 2 : Address comments. #

Patch Set 3 : git cl format. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -146 lines) Patch
M chromeos/dbus/session_manager_client.cc View 1 2 21 chunks +46 lines, -119 lines 0 comments Download
M dbus/object_proxy.cc View 1 2 5 chunks +20 lines, -27 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (12 generated)
hidehiko
PTAL.
3 years, 7 months ago (2017-05-19 07:39:21 UTC) #4
hashimoto
https://codereview.chromium.org/2889683006/diff/1/dbus/object_proxy.cc File dbus/object_proxy.cc (right): https://codereview.chromium.org/2889683006/diff/1/dbus/object_proxy.cc#newcode594 dbus/object_proxy.cc:594: error_name = "(noname)"; How about making this more readable? ...
3 years, 7 months ago (2017-05-19 11:02:46 UTC) #7
hidehiko
Thank you for review. Addressed your comments at PS2, and I found there's lint warning ...
3 years, 7 months ago (2017-05-19 12:32:04 UTC) #10
hashimoto
lgtm
3 years, 7 months ago (2017-05-22 05:16:28 UTC) #13
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/2889683006/40001
3 years, 7 months ago (2017-05-22 05:17:22 UTC) #15
commit-bot: I haz the power
3 years, 7 months ago (2017-05-22 06:18:51 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/6c197efb6eaff2b3fee5e037ba53...

Powered by Google App Engine
This is Rietveld 408576698