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 10873050: [Chromoting] Hook up host talkgadget policy checks. (Closed)

Created:
8 years, 4 months ago by garykac
Modified:
8 years, 3 months ago
Reviewers:
Sergey Ulanov, Wez
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

[Chromoting] Hook up host talkgadget policy checks. This updates the host to ping the specified talkgadget and block startup if the talkgadget is not reachable. This permits admins to DNS block the talkgadget to disable hosts from sharing out from their network. Also, update the policy watcher to watch the correct location for Chromium builds. BUG=132345, 132681 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=154583

Patch Set 1 #

Total comments: 1

Patch Set 2 : Remove extra LOGs #

Total comments: 17

Patch Set 3 : Add ConnectionBlockChecker #

Patch Set 4 : Remove extra comments/whitespace #

Total comments: 12

Patch Set 5 : Use callback to notify SignalingConnector #

Patch Set 6 : Cleanup logging #

Total comments: 14

Patch Set 7 : Rename ConnectionBlockChecker to DnsBlackholeChecker #

Patch Set 8 : Move callback #

Total comments: 17

Patch Set 9 : Review comments #

Total comments: 2

Patch Set 10 : #

Patch Set 11 : Change int to bool #

Unified diffs Side-by-side diffs Delta from patch set Stats (+253 lines, -71 lines) Patch
M remoting/host/constants.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -5 lines 0 comments Download
M remoting/host/constants.cc View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -11 lines 0 comments Download
A remoting/host/dns_blackhole_checker.h View 1 2 3 4 5 6 7 8 1 chunk +53 lines, -0 lines 0 comments Download
A remoting/host/dns_blackhole_checker.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +70 lines, -0 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher.cc View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -2 lines 0 comments Download
M remoting/host/policy_hack/policy_watcher_linux.cc View 1 2 1 chunk +3 lines, -1 line 0 comments Download
M remoting/host/policy_hack/policy_watcher_unittest.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 4 5 6 7 8 9 6 chunks +61 lines, -33 lines 0 comments Download
M remoting/host/signaling_connector.h View 1 2 3 4 5 6 7 8 4 chunks +13 lines, -5 lines 0 comments Download
M remoting/host/signaling_connector.cc View 1 2 3 4 5 6 7 8 9 7 chunks +40 lines, -10 lines 0 comments Download
M remoting/host/simple_host_process.cc View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -1 line 0 comments Download
M remoting/remoting.gyp View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 20 (0 generated)
garykac
http://codereview.chromium.org/10873050/diff/1/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): http://codereview.chromium.org/10873050/diff/1/remoting/host/remoting_me2me_host.cc#newcode586 remoting/host/remoting_me2me_host.cc:586: ResetHost(); Note that calling ResetHost here resets the SignalingConnector ...
8 years, 4 months ago (2012-08-23 22:08:49 UTC) #1
Sergey Ulanov
I think it's better to add a new class that will take care of verifying ...
8 years, 4 months ago (2012-08-24 19:43:33 UTC) #2
garykac
ptal http://codereview.chromium.org/10873050/diff/2001/remoting/host/constants.h File remoting/host/constants.h (right): http://codereview.chromium.org/10873050/diff/2001/remoting/host/constants.h#newcode15 remoting/host/constants.h:15: extern const char kDefaultHostTalkGadgetPrefix[]; On 2012/08/24 19:43:33, sergeyu ...
8 years, 3 months ago (2012-08-27 22:34:56 UTC) #3
Sergey Ulanov
http://codereview.chromium.org/10873050/diff/2001/remoting/host/constants.h File remoting/host/constants.h (right): http://codereview.chromium.org/10873050/diff/2001/remoting/host/constants.h#newcode15 remoting/host/constants.h:15: extern const char kDefaultHostTalkGadgetPrefix[]; On 2012/08/27 22:34:57, garykac wrote: ...
8 years, 3 months ago (2012-08-28 00:33:41 UTC) #4
Wez
Superhypersonicdrive-by-review-nit: Can we not call it ConnectionBlockChecker? For historical reasons, I parsed that name completely ...
8 years, 3 months ago (2012-08-28 01:24:56 UTC) #5
Sergey Ulanov
On 2012/08/28 01:24:56, Wez wrote: > Superhypersonicdrive-by-review-nit: Can we not call it ConnectionBlockChecker? > For ...
8 years, 3 months ago (2012-08-28 01:35:32 UTC) #6
Wez
On 2012/08/28 01:35:32, sergeyu wrote: > On 2012/08/28 01:24:56, Wez wrote: > > Superhypersonicdrive-by-review-nit: Can ...
8 years, 3 months ago (2012-08-28 01:37:06 UTC) #7
Sergey Ulanov
On 2012/08/28 01:37:06, Wez wrote: > On 2012/08/28 01:35:32, sergeyu wrote: > > On 2012/08/28 ...
8 years, 3 months ago (2012-08-28 01:39:01 UTC) #8
garykac
I still need to talk to wez about renaming the connection_block_checker, but ptal at the ...
8 years, 3 months ago (2012-08-29 00:07:15 UTC) #9
Sergey Ulanov
Looks mostly good, I just have some nits about interface provided by ConnectionBlockChecker http://codereview.chromium.org/10873050/diff/14001/remoting/host/connection_block_checker.cc File ...
8 years, 3 months ago (2012-08-29 20:10:29 UTC) #10
garykac
ptal http://codereview.chromium.org/10873050/diff/14001/remoting/host/connection_block_checker.cc File remoting/host/connection_block_checker.cc (right): http://codereview.chromium.org/10873050/diff/14001/remoting/host/connection_block_checker.cc#newcode59 remoting/host/connection_block_checker.cc:59: LOG(INFO) << "Pending connection check"; On 2012/08/29 20:10:29, ...
8 years, 3 months ago (2012-08-29 22:30:51 UTC) #11
Sergey Ulanov
http://codereview.chromium.org/10873050/diff/13013/remoting/host/constants.h File remoting/host/constants.h (right): http://codereview.chromium.org/10873050/diff/13013/remoting/host/constants.h#newcode15 remoting/host/constants.h:15: extern const char kDefaultHostTalkGadgetPrefix[]; can we move it to ...
8 years, 3 months ago (2012-08-30 18:05:01 UTC) #12
Wez
http://codereview.chromium.org/10873050/diff/13013/remoting/host/dns_blackhole_checker.h File remoting/host/dns_blackhole_checker.h (right): http://codereview.chromium.org/10873050/diff/13013/remoting/host/dns_blackhole_checker.h#newcode16 remoting/host/dns_blackhole_checker.h:16: class DnsBlackholeChecker : public net::URLFetcherDelegate { On 2012/08/30 18:05:01, ...
8 years, 3 months ago (2012-08-30 20:43:38 UTC) #13
garykac
ptal http://codereview.chromium.org/10873050/diff/13013/remoting/host/constants.h File remoting/host/constants.h (right): http://codereview.chromium.org/10873050/diff/13013/remoting/host/constants.h#newcode15 remoting/host/constants.h:15: extern const char kDefaultHostTalkGadgetPrefix[]; On 2012/08/30 18:05:01, sergeyu ...
8 years, 3 months ago (2012-08-31 18:28:23 UTC) #14
Sergey Ulanov
LGTM, but see my last two nits http://codereview.chromium.org/10873050/diff/13013/remoting/host/signaling_connector.cc File remoting/host/signaling_connector.cc (left): http://codereview.chromium.org/10873050/diff/13013/remoting/host/signaling_connector.cc#oldcode150 remoting/host/signaling_connector.cc:150: int delay_s ...
8 years, 3 months ago (2012-08-31 23:40:16 UTC) #15
garykac
http://codereview.chromium.org/10873050/diff/29001/remoting/host/signaling_connector.cc File remoting/host/signaling_connector.cc (right): http://codereview.chromium.org/10873050/diff/29001/remoting/host/signaling_connector.cc#newcode190 remoting/host/signaling_connector.cc:190: LOG(INFO) << "Scheduling reconnect. Attempt " << reconnect_attempts_; On ...
8 years, 3 months ago (2012-08-31 23:51:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/10873050/32001
8 years, 3 months ago (2012-08-31 23:51:46 UTC) #17
commit-bot: I haz the power
Try job failure for 10873050-32001 (retry) on win for step "compile" (clobber build). It's a ...
8 years, 3 months ago (2012-09-01 00:29:19 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/garykac@chromium.org/10873050/25003
8 years, 3 months ago (2012-09-01 00:38:03 UTC) #19
commit-bot: I haz the power
8 years, 3 months ago (2012-09-01 03:05:23 UTC) #20
Change committed as 154583

Powered by Google App Engine
This is Rietveld 408576698