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

Issue 886913002: Always run PolicyWatcher on UI thread in It2Me host. (Closed)

Created:
5 years, 10 months ago by Sergey Ulanov
Modified:
5 years, 10 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cleanup threading in PolicyWatcher. Previously PolicyWatcher allowed initialization on a thread different from the one it runs on. It's no longer necessary. Also for It2Me it was initialized on UI thread, but was given task runner for the network thread, which causes the DCHECK in the linked bug. Now PolicyWatcher is marked as NonThreadSafe. It's initialized on UI thread for It2Me host and on NetworkThread for the me2me host. Also the file thread is used for blocking operation when reading policies. BUG=453615 Committed: https://crrev.com/b2ae7e31aeeaa8f6dcffc4d2c859beea16ae97c2 Cr-Commit-Position: refs/heads/master@{#314026}

Patch Set 1 : #

Patch Set 2 : #

Total comments: 17

Patch Set 3 : #

Total comments: 6

Patch Set 4 : merge trunk #

Patch Set 5 : #

Patch Set 6 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -177 lines) Patch
M remoting/host/it2me/it2me_host.h View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M remoting/host/it2me/it2me_host.cc View 1 2 3 3 chunks +4 lines, -11 lines 0 comments Download
M remoting/host/policy_watcher.h View 1 2 3 4 6 chunks +12 lines, -31 lines 0 comments Download
M remoting/host/policy_watcher.cc View 1 2 3 4 5 7 chunks +38 lines, -63 lines 0 comments Download
M remoting/host/policy_watcher_unittest.cc View 1 2 3 24 chunks +2 lines, -40 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 2 3 5 chunks +9 lines, -28 lines 0 comments Download

Messages

Total messages: 20 (8 generated)
Sergey Ulanov
5 years, 10 months ago (2015-01-30 00:23:52 UTC) #4
Łukasz Anforowicz
Thanks for catching and addressing the threading problem I must have introduced in the 2nd ...
5 years, 10 months ago (2015-01-30 05:35:55 UTC) #5
Łukasz Anforowicz
Still LGTM, but I've added a comment about opportunity to simplify StartWatching and StopWatching methods ...
5 years, 10 months ago (2015-01-30 17:16:00 UTC) #6
Sergey Ulanov
PTAL. Simplified PolicyWatcher. Kelvin, I sill need your review (Lucazs is not a committer yet). ...
5 years, 10 months ago (2015-01-30 19:33:46 UTC) #7
Łukasz Anforowicz
Still LTGM, but I added some comments you might want to take a look at. ...
5 years, 10 months ago (2015-01-30 19:50:59 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/886913002/diff/80001/remoting/host/policy_hack/policy_watcher.cc File remoting/host/policy_hack/policy_watcher.cc (right): https://codereview.chromium.org/886913002/diff/80001/remoting/host/policy_hack/policy_watcher.cc#newcode100 remoting/host/policy_hack/policy_watcher.cc:100: DCHECK(!policy_error_callback.is_null()); On 2015/01/30 19:50:59, lukasza wrote: > nit: I ...
5 years, 10 months ago (2015-01-30 20:06:07 UTC) #10
kelvinp
lgtm
5 years, 10 months ago (2015-01-30 20:45:40 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886913002/160001
5 years, 10 months ago (2015-01-30 20:59:56 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/3537)
5 years, 10 months ago (2015-01-30 21:11:13 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/886913002/180001
5 years, 10 months ago (2015-01-30 22:54:38 UTC) #18
commit-bot: I haz the power
Committed patchset #6 (id:180001)
5 years, 10 months ago (2015-01-30 23:33:56 UTC) #19
commit-bot: I haz the power
5 years, 10 months ago (2015-01-30 23:34:56 UTC) #20
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/b2ae7e31aeeaa8f6dcffc4d2c859beea16ae97c2
Cr-Commit-Position: refs/heads/master@{#314026}

Powered by Google App Engine
This is Rietveld 408576698