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

Issue 639233002: Remote assistance on Chrome OS Part IV - It2MeHost (Closed)

Created:
6 years, 2 months ago by kelvinp
Modified:
5 years, 7 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, chromoting-reviews_chromium.org, extensions-reviews_chromium.org, mkwst+moarreviews-ipc_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, jam
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remote assistance on Chrome OS Part IV - It2MeHost This CL links the it2me host to the Chrome binary on ChromeOS behind a flag. The following changes are made to the it2me host so that it can be run in the browser process. 1. Initializes SSL server sockets and specific CPU media features on ChromeOS startup. 2. Fixes a crash in it2me shutdown by making It2meHost owns the ChromotingHostContext. 3. Replace the blocking shutdown wait on PolicyWatcher with a callback. Implements policy_watcher on ChromeOS using policy services. 4. Re-use existing threads, url request context getters and policy service on ChromeOS. 5. Fixed a incorrect DCHECK regarding the color format of the frames captured on ChromeOS. BUG=334087 Committed: https://crrev.com/54dde6f02d121ff745e66b57205583087ff720ec Cr-Commit-Position: refs/heads/master@{#302034} Committed: https://crrev.com/561074cfd46c253dcdc456fdc63693aff4d1be32 Cr-Commit-Position: refs/heads/master@{#302162}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : DEPS clean up and ChromotingHostContext clean up #

Total comments: 7

Patch Set 3 : Move DEPS to remoting/host #

Total comments: 42

Patch Set 4 : Address feedbacks #

Total comments: 87

Patch Set 5 : Address Wez's feedbacks #

Patch Set 6 : Fix typo #

Patch Set 7 : Merge with ToT #

Patch Set 8 : ChromotingHostContext cleanup #

Total comments: 44

Patch Set 9 : AuraDesktopCapturer clean up #

Total comments: 24

Patch Set 10 : #

Total comments: 23

Patch Set 11 : #

Total comments: 1

Patch Set 12 : Rebase on ToT #

Patch Set 13 : Fix build error on ozone #

Unified diffs Side-by-side diffs Delta from patch set Stats (+555 lines, -178 lines) Patch
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/DEPS View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +41 lines, -7 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -0 lines 0 comments Download
M remoting/DEPS View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M remoting/host/DEPS View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M remoting/host/basic_desktop_environment.cc View 1 2 3 4 5 6 7 8 9 2 chunks +7 lines, -0 lines 0 comments Download
M remoting/host/chromeos/aura_desktop_capturer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/chromeos/aura_desktop_capturer_unittest.cc View 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M remoting/host/chromoting_host_context.h View 1 2 3 4 5 6 7 8 9 5 chunks +33 lines, -9 lines 0 comments Download
M remoting/host/chromoting_host_context.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +105 lines, -47 lines 0 comments Download
M remoting/host/chromoting_host_context_unittest.cc View 1 5 6 7 1 chunk +1 line, -1 line 0 comments Download
A remoting/host/continue_window_chromeos.cc View 1 2 3 4 5 6 7 8 1 chunk +51 lines, -0 lines 0 comments Download
A remoting/host/disconnect_window_chromeos.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +54 lines, -0 lines 0 comments Download
M remoting/host/it2me/it2me_host.h View 1 2 3 4 5 6 7 8 9 10 7 chunks +21 lines, -11 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 3 4 5 6 7 8 9 10 6 chunks +36 lines, -19 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.h View 1 2 3 4 5 6 7 8 3 chunks +11 lines, -7 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host.cc View 1 2 3 4 5 6 7 8 3 chunks +9 lines, -10 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host_main.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +2 lines, -6 lines 0 comments Download
M remoting/host/it2me/it2me_native_messaging_host_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +12 lines, -14 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +11 lines, -6 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.cc View 1 2 3 4 2 chunks +7 lines, -10 lines 0 comments Download
A remoting/host/policy_hack/policy_watcher_chromeos.cc View 1 2 3 4 5 6 7 8 1 chunk +90 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_linux.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_mac.mm View 1 2 3 4 5 6 1 chunk +4 lines, -3 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +5 lines, -3 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_win.cc View 1 2 3 4 5 1 chunk +3 lines, -2 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 7 4 chunks +16 lines, -14 lines 0 comments Download
M remoting/remoting_host.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +11 lines, -5 lines 0 comments Download

Messages

Total messages: 75 (21 generated)
kelvinp
PTAL. kalman@ Can I have a CL for the following files: chrome/browser/DEPS chrome/browser/extensions/api/DEPS chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc jochen@ ...
6 years, 2 months ago (2014-10-09 05:02:07 UTC) #4
not at google - send to devlin
Could you put in a BUG? I'm not the best person to review this because ...
6 years, 2 months ago (2014-10-09 05:14:54 UTC) #5
jochen (gone - plz use gerrit)
this is a cyclic dependency (remoting -> chrome browser -> remoting), just from looking at ...
6 years, 2 months ago (2014-10-09 11:45:36 UTC) #6
chromium-reviews
On 9 Oct 2014 06:02, <kelvinp@chromium.org> wrote: > > Reviewers: kalman, rmsousa, Sergey Ulanov, jochen, ...
6 years, 2 months ago (2014-10-09 11:52:21 UTC) #7
Wez
On 9 Oct 2014 12:52, "Wez" <wez@google.com> wrote: > > On 9 Oct 2014 06:02, ...
6 years, 2 months ago (2014-10-09 11:54:14 UTC) #8
kelvinp
@Wez. The It2MeNativeMessagingHost currently owns the ChromotingHostContext and the It2meHost(which is ref-counted). The It2MeHost also ...
6 years, 2 months ago (2014-10-09 18:56:33 UTC) #9
Wez
On 2014/10/09 18:56:33, kelvinp wrote: > @Wez. The It2MeNativeMessagingHost currently owns the ChromotingHostContext and > ...
6 years, 2 months ago (2014-10-09 19:41:12 UTC) #10
kelvinp
On 2014/10/09 19:41:12, Wez wrote: > On 2014/10/09 18:56:33, kelvinp wrote: > > @Wez. The ...
6 years, 2 months ago (2014-10-09 21:17:52 UTC) #11
Wez
On 2014/10/09 21:17:52, kelvinp wrote: > On 2014/10/09 19:41:12, Wez wrote: > > On 2014/10/09 ...
6 years, 2 months ago (2014-10-09 22:08:05 UTC) #12
kelvinp
PTAL @Wez. I have changed the object lifetime of the ChromotingHostContext as discussed. @jochen. Good ...
6 years, 2 months ago (2014-10-10 23:08:05 UTC) #14
Dmitry Polukhin
LGTM for change in chrome/browser/chromeos/chrome_browser_main_chromeos.cc
6 years, 2 months ago (2014-10-13 07:36:56 UTC) #15
jochen (gone - plz use gerrit)
https://codereview.chromium.org/639233002/diff/90001/remoting/DEPS File remoting/DEPS (right): https://codereview.chromium.org/639233002/diff/90001/remoting/DEPS#newcode3 remoting/DEPS:3: "+content/public/browser", shouldn't this be in remoting/host/DEPS https://codereview.chromium.org/639233002/diff/90001/remoting/DEPS#newcode4 remoting/DEPS:4: "+components/policy/core/common", ...
6 years, 2 months ago (2014-10-13 08:19:58 UTC) #16
kelvinp
PTAL https://codereview.chromium.org/639233002/diff/90001/remoting/DEPS File remoting/DEPS (right): https://codereview.chromium.org/639233002/diff/90001/remoting/DEPS#newcode3 remoting/DEPS:3: "+content/public/browser", On 2014/10/13 08:19:57, jochen wrote: > shouldn't ...
6 years, 2 months ago (2014-10-13 16:48:54 UTC) #17
not at google - send to devlin
me -> rockot
6 years, 2 months ago (2014-10-13 22:16:08 UTC) #19
Ken Rockot(use gerrit already)
On 2014/10/13 22:16:08, kalman wrote: > me -> rockot extensions stuff lgtm
6 years, 2 months ago (2014-10-13 22:27:38 UTC) #20
rmsousa
This looks generally good, depending on the answer to the first 2 comments. Please wait ...
6 years, 2 months ago (2014-10-14 00:18:26 UTC) #21
Jamie
https://codereview.chromium.org/639233002/diff/320001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc File chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc (right): https://codereview.chromium.org/639233002/diff/320001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc#newcode35 chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc:35: // used for testing by ExtensionApiTest::NativeMessagingBasic. Is this comment ...
6 years, 2 months ago (2014-10-14 01:18:42 UTC) #22
Wez
Apologies for the delay; will take a look ASAP! On 14 October 2014 02:18, <jamiewalch@chromium.org> ...
6 years, 2 months ago (2014-10-14 01:51:40 UTC) #23
jochen (gone - plz use gerrit)
deps lgtm
6 years, 2 months ago (2014-10-14 13:54:11 UTC) #24
kelvinp
PTAL @agl I have added dependencies to net/url_request in remoting/DEPS. Can I have an LGTM ...
6 years, 2 months ago (2014-10-15 23:03:10 UTC) #27
Evan Martin
Hey, I haven't worked on Chrome in a long time, you'll probably need someone else ...
6 years, 2 months ago (2014-10-15 23:06:11 UTC) #28
agl
LGTM. If you already depend on net/socket then net/url_request shouldn't be a problem.
6 years, 2 months ago (2014-10-16 00:12:02 UTC) #29
kelvinp
PTAL @jam. I have added a ScopedAllowedIO in AutoThread.cc, to allow joining and I would ...
6 years, 2 months ago (2014-10-16 22:45:52 UTC) #31
jam
On 2014/10/16 22:45:52, kelvinp wrote: > PTAL > > @jam. > I have added a ...
6 years, 2 months ago (2014-10-17 16:54:38 UTC) #32
Wez
https://codereview.chromium.org/639233002/diff/20001/remoting/host/it2me/it2me_native_messaging_host.cc File remoting/host/it2me/it2me_native_messaging_host.cc (right): https://codereview.chromium.org/639233002/diff/20001/remoting/host/it2me/it2me_native_messaging_host.cc#newcode56 remoting/host/it2me/it2me_native_messaging_host.cc:56: // base::DoNothing is passed in as the quit closure. ...
6 years, 2 months ago (2014-10-17 17:58:02 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639233002/460001
6 years, 2 months ago (2014-10-19 20:53:01 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639233002/480001
6 years, 2 months ago (2014-10-20 00:09:07 UTC) #39
kelvinp
@wez. Feedback addressed. @jam. The remote assistance host is the OS component that allows IT ...
6 years, 2 months ago (2014-10-20 00:21:18 UTC) #40
kelvinp
@jam, Actually, I do mean AllowIO. See PlatformThread::Join void PlatformThread::Join(PlatformThreadHandle thread_handle) { // Joining another ...
6 years, 2 months ago (2014-10-20 00:42:58 UTC) #41
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639233002/500001
6 years, 2 months ago (2014-10-20 01:07:46 UTC) #44
kelvinp
On 2014/10/20 00:42:58, kelvinp wrote: > @jam, Actually, I do mean AllowIO. See PlatformThread::Join > ...
6 years, 2 months ago (2014-10-20 01:07:54 UTC) #45
Wez
https://codereview.chromium.org/639233002/diff/440001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc File chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc (right): https://codereview.chromium.org/639233002/diff/440001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc#newcode34 chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc:34: // A simple NativeMesageHost that mimics the implementation of ...
6 years, 2 months ago (2014-10-20 01:16:13 UTC) #46
Wez
Please be careful not to hit the CQ box until you have LGTMs from all ...
6 years, 2 months ago (2014-10-20 01:17:35 UTC) #48
kelvinp
On 2014/10/20 01:17:35, Wez wrote: > Please be careful not to hit the CQ box ...
6 years, 2 months ago (2014-10-20 05:22:46 UTC) #49
jam
On 2014/10/20 00:21:18, kelvinp wrote: > @wez. Feedback addressed. > > @jam. The remote assistance ...
6 years, 2 months ago (2014-10-20 15:22:01 UTC) #50
kelvinp
@jam, Yes, that's is correct, I don't need an LGTM for this CL. Thank you ...
6 years, 2 months ago (2014-10-20 17:42:44 UTC) #52
kelvinp
@wez. I have fixed the face-palming typo ;( (good catch) and changed PolicyWatcher::Create to return ...
6 years, 2 months ago (2014-10-20 18:18:37 UTC) #53
kelvinp
On 2014/10/20 18:18:37, kelvinp wrote: > @wez. I have fixed the face-palming typo ;( (good ...
6 years, 2 months ago (2014-10-23 03:14:47 UTC) #54
Wez
https://codereview.chromium.org/639233002/diff/440001/remoting/host/chromeos/aura_desktop_capturer.cc File remoting/host/chromeos/aura_desktop_capturer.cc (right): https://codereview.chromium.org/639233002/diff/440001/remoting/host/chromeos/aura_desktop_capturer.cc#newcode119 remoting/host/chromeos/aura_desktop_capturer.cc:119: bool AuraDesktopCapturer::GetScreenList(ScreenList* screens) { On 2014/10/20 00:21:16, kelvinp wrote: ...
6 years, 2 months ago (2014-10-24 00:28:49 UTC) #56
kelvinp
@wez PTAL https://codereview.chromium.org/639233002/diff/580001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc File chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc (right): https://codereview.chromium.org/639233002/diff/580001/chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc#newcode111 chrome/browser/extensions/api/messaging/native_message_host_chromeos.cc:111: // Therefore, base::DoNothing is passed in as ...
6 years, 2 months ago (2014-10-24 21:39:42 UTC) #58
Wez
https://codereview.chromium.org/639233002/diff/580001/remoting/host/chromoting_host_context.cc File remoting/host/chromoting_host_context.cc (right): https://codereview.chromium.org/639233002/diff/580001/remoting/host/chromoting_host_context.cc#newcode145 remoting/host/chromoting_host_context.cc:145: // that allows blocking I/O, which is required by ...
6 years, 2 months ago (2014-10-24 23:29:27 UTC) #59
kelvinp
PTAL https://codereview.chromium.org/639233002/diff/580001/remoting/host/chromoting_host_context.cc File remoting/host/chromoting_host_context.cc (right): https://codereview.chromium.org/639233002/diff/580001/remoting/host/chromoting_host_context.cc#newcode145 remoting/host/chromoting_host_context.cc:145: // that allows blocking I/O, which is required ...
6 years, 1 month ago (2014-10-29 01:22:53 UTC) #60
Wez
https://codereview.chromium.org/639233002/diff/620001/remoting/host/it2me/it2me_host.h File remoting/host/it2me/it2me_host.h (right): https://codereview.chromium.org/639233002/diff/620001/remoting/host/it2me/it2me_host.h#newcode188 remoting/host/it2me/it2me_host.h:188: // |policy_service| is a global singleton available from the ...
6 years, 1 month ago (2014-10-29 18:27:51 UTC) #61
kelvinp
@wez PTAL https://codereview.chromium.org/639233002/diff/620001/remoting/host/it2me/it2me_host.h File remoting/host/it2me/it2me_host.h (right): https://codereview.chromium.org/639233002/diff/620001/remoting/host/it2me/it2me_host.h#newcode188 remoting/host/it2me/it2me_host.h:188: // |policy_service| is a global singleton available ...
6 years, 1 month ago (2014-10-29 22:20:17 UTC) #63
Wez
https://codereview.chromium.org/639233002/diff/640001/remoting/host/chromoting_host_context.h File remoting/host/chromoting_host_context.h (right): https://codereview.chromium.org/639233002/diff/640001/remoting/host/chromoting_host_context.h#newcode40 remoting/host/chromoting_host_context.h:40: // Instead, we re-use the |url_request_context_getter| in the browser ...
6 years, 1 month ago (2014-10-30 01:09:00 UTC) #64
Wez
lgtm
6 years, 1 month ago (2014-10-30 01:09:27 UTC) #65
Wez
Note that your CL description needs updating before this lands.
6 years, 1 month ago (2014-10-30 01:10:36 UTC) #66
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639233002/700001
6 years, 1 month ago (2014-10-30 04:03:15 UTC) #68
commit-bot: I haz the power
Committed patchset #12 (id:700001)
6 years, 1 month ago (2014-10-30 04:51:21 UTC) #69
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/54dde6f02d121ff745e66b57205583087ff720ec Cr-Commit-Position: refs/heads/master@{#302034}
6 years, 1 month ago (2014-10-30 04:52:10 UTC) #70
kelvinp
A revert of this CL (patchset #12 id:700001) has been created in https://codereview.chromium.org/686373002/ by kelvinp@chromium.org. ...
6 years, 1 month ago (2014-10-30 05:01:13 UTC) #71
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/639233002/720001
6 years, 1 month ago (2014-10-30 20:52:27 UTC) #73
commit-bot: I haz the power
Committed patchset #13 (id:720001)
6 years, 1 month ago (2014-10-30 21:46:33 UTC) #74
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 21:47:18 UTC) #75
Message was sent while issue was closed.
Patchset 13 (id:??) landed as
https://crrev.com/561074cfd46c253dcdc456fdc63693aff4d1be32
Cr-Commit-Position: refs/heads/master@{#302162}

Powered by Google App Engine
This is Rietveld 408576698