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

Issue 2310823003: chromeos: Remove dbus::FileDescriptor from SessionManagerClient (Closed)

Created:
4 years, 3 months ago by hashimoto
Modified:
4 years, 3 months ago
CC:
chromium-reviews, hashimoto+watch_chromium.org, alemate+watch_chromium.org, achuith+watch_chromium.org, oshima+watch_chromium.org, davemoore+watch_chromium.org, atch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

chromeos: Remove dbus::FileDescriptor from SessionManagerClient Replace dbus::FileDescriptor with base::ScopedFD. Move socket related code to ChromeRestartRequest to make SessionManagerClient a simple D-Bus binding class. BUG=621841 TEST="Browse as Guest" on login screen works. Committed: https://crrev.com/17c02a91835794ad2810c5d64cdd9007fa50efe5 Cr-Commit-Position: refs/heads/master@{#418194}

Patch Set 1 #

Patch Set 2 : Fix test #

Total comments: 5

Patch Set 3 : Add a comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -87 lines) Patch
M chrome/browser/chromeos/login/chrome_restart_request.cc View 1 2 3 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/chromeos/settings/device_settings_test_helper.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.h View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/fake_session_manager_client.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M chromeos/dbus/mock_session_manager_client.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.h View 1 2 2 chunks +10 lines, -1 line 0 comments Download
M chromeos/dbus/session_manager_client.cc View 1 2 5 chunks +18 lines, -80 lines 0 comments Download

Messages

Total messages: 28 (12 generated)
hashimoto
cc: achuith in case this change conflicts with your work on crbug.com/631640
4 years, 3 months ago (2016-09-06 06:37:31 UTC) #3
satorux1
Moving socket related code to ChromeRestartRequest SGTM. +derat who'd be familiar with the session manager ...
4 years, 3 months ago (2016-09-06 07:31:58 UTC) #9
Daniel Erat
lgtm (i'm not really all that familiar with session_manager stuff; i'm just one of the ...
4 years, 3 months ago (2016-09-06 15:11:06 UTC) #10
stevenjb
https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode329 chrome/browser/chromeos/login/chrome_restart_request.cc:329: if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) { I'm ...
4 years, 3 months ago (2016-09-06 15:59:28 UTC) #11
stevenjb
4 years, 3 months ago (2016-09-06 15:59:31 UTC) #12
achuithb
+1 to Steven's concern about socket_pair. Otherwise this should be fine as far as 631640 ...
4 years, 3 months ago (2016-09-06 16:11:32 UTC) #14
hashimoto
https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode293 chrome/browser/chromeos/login/chrome_restart_request.cc:293: g_browser_process->EndSession(); FYI: BrowserProcessImpl::EndSession() may block the UI thread for ...
4 years, 3 months ago (2016-09-07 06:05:46 UTC) #15
stevenjb
https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc File chrome/browser/chromeos/login/chrome_restart_request.cc (right): https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode329 chrome/browser/chromeos/login/chrome_restart_request.cc:329: if (socketpair(AF_UNIX, SOCK_STREAM, 0, sockets) < 0) { On ...
4 years, 3 months ago (2016-09-08 16:40:11 UTC) #16
hashimoto
On 2016/09/08 16:40:11, stevenjb wrote: > https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc > File chrome/browser/chromeos/login/chrome_restart_request.cc (right): > > https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc#newcode329 > ...
4 years, 3 months ago (2016-09-09 03:41:46 UTC) #17
stevenjb
On 2016/09/09 03:41:46, hashimoto wrote: > On 2016/09/08 16:40:11, stevenjb wrote: > > > https://codereview.chromium.org/2310823003/diff/20001/chrome/browser/chromeos/login/chrome_restart_request.cc ...
4 years, 3 months ago (2016-09-12 16:14:27 UTC) #18
stevenjb
Also, lgtm with a comment added above the call to socketpair() explaining that it is ...
4 years, 3 months ago (2016-09-12 16:15:19 UTC) #19
achuithb
On 2016/09/12 16:15:19, stevenjb wrote: > Also, lgtm with a comment added above the call ...
4 years, 3 months ago (2016-09-12 18:17:42 UTC) #20
hashimoto
On 2016/09/12 18:17:42, achuithb wrote: > On 2016/09/12 16:15:19, stevenjb wrote: > > Also, lgtm ...
4 years, 3 months ago (2016-09-13 07:27:27 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/2310823003/40001
4 years, 3 months ago (2016-09-13 07:27:47 UTC) #24
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 3 months ago (2016-09-13 08:17:55 UTC) #26
commit-bot: I haz the power
4 years, 3 months ago (2016-09-13 08:19:56 UTC) #28
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/17c02a91835794ad2810c5d64cdd9007fa50efe5
Cr-Commit-Position: refs/heads/master@{#418194}

Powered by Google App Engine
This is Rietveld 408576698