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

Issue 891663005: Add blocking IO restriction on the network thread. (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@it2me_host_dcheck
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add blocking IO restriction on the network thread. Now ChromotingHostContext disallows blocking operations on then network thread. This will help to avoid issues such as the one that was fixed in https://codereview.chromium.org/886913002/ (Network thread was used to load policies from disk). Also made the following changes to avoid blocking operation on the network thread: - Moved PolicyWatcher to the main thread in the Me2Me host. PolicyLoader uses blocking IO for initialization. Also this is more consistent with the It2Me host where PolicyWatcher also runs on the UI thread. - Moved NetworkChangeNotifier initialization out of HostSignalingManager. NetworkChangeNotifier creates a thread internally and therefore should be destroyed on the main thread. - Added a reference to URLRequestContextGetter in HostProcessMain to make sure it's destroyed on the main thread. This is necessary because BasicURLRequestContext owns threads and needs to be deleted on the main thread. Committed: https://crrev.com/c099813e194006d7ba33b71d7f62cc782a36d6a6 Cr-Commit-Position: refs/heads/master@{#314165}

Patch Set 1 : #

Total comments: 13

Patch Set 2 : #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -41 lines) Patch
M remoting/host/chromoting_host_context.cc View 2 chunks +13 lines, -0 lines 0 comments Download
M remoting/host/host_signaling_manager.h View 2 chunks +3 lines, -9 lines 0 comments Download
M remoting/host/host_signaling_manager.cc View 4 chunks +2 lines, -9 lines 0 comments Download
M remoting/host/remoting_me2me_host.cc View 1 16 chunks +66 lines, -23 lines 2 comments Download

Messages

Total messages: 18 (6 generated)
Sergey Ulanov
5 years, 10 months ago (2015-01-30 23:04:04 UTC) #4
Łukasz Anforowicz
LGTM, except I don't understand what the scoped_ptr<net::NetworkChangeNotifier> does. https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc#newcode553 remoting/host/remoting_me2me_host.cc:553: ...
5 years, 10 months ago (2015-01-31 00:02:34 UTC) #5
Sergey Ulanov
https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc#newcode553 remoting/host/remoting_me2me_host.cc:553: if (!policies_loaded_) On 2015/01/31 00:02:34, lukasza wrote: > The ...
5 years, 10 months ago (2015-01-31 00:34:26 UTC) #6
Łukasz Anforowicz
lgtm https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/891663005/diff/40001/remoting/host/remoting_me2me_host.cc#newcode1520 remoting/host/remoting_me2me_host.cc:1520: // dereferences on UI threads. Store the reference ...
5 years, 10 months ago (2015-01-31 00:41:35 UTC) #7
Sergey Ulanov
Renato, PTAL.
5 years, 10 months ago (2015-01-31 01:08:32 UTC) #8
rmsousa
lgtm (see comment about networkchangenotifier - it doesn't seem to be doing anything, but, either ...
5 years, 10 months ago (2015-01-31 01:34:34 UTC) #9
Sergey Ulanov
https://codereview.chromium.org/891663005/diff/60001/remoting/host/remoting_me2me_host.cc File remoting/host/remoting_me2me_host.cc (right): https://codereview.chromium.org/891663005/diff/60001/remoting/host/remoting_me2me_host.cc#newcode1517 remoting/host/remoting_me2me_host.cc:1517: scoped_ptr<net::NetworkChangeNotifier> network_change_notifier( On 2015/01/31 01:34:34, rmsousa wrote: > I ...
5 years, 10 months ago (2015-01-31 01:38:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891663005/60001
5 years, 10 months ago (2015-01-31 01:39:50 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_gn_rel on tryserver.chromium.win (http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_gn_rel/builds/3611)
5 years, 10 months ago (2015-01-31 07:41:26 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/891663005/60001
5 years, 10 months ago (2015-02-02 18:00:55 UTC) #16
commit-bot: I haz the power
Committed patchset #2 (id:60001)
5 years, 10 months ago (2015-02-02 18:02:00 UTC) #17
commit-bot: I haz the power
5 years, 10 months ago (2015-02-02 18:02:49 UTC) #18
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c099813e194006d7ba33b71d7f62cc782a36d6a6
Cr-Commit-Position: refs/heads/master@{#314165}

Powered by Google App Engine
This is Rietveld 408576698