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

Issue 4146004: ThreadRestrictions: disallow blocking IO on the UI thread (Closed)

Created:
10 years, 1 month ago by Evan Martin
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, ben+cc_chromium.org, pam+watch_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

ThreadRestrictions: disallow blocking IO on the UI thread This patch sets the "disallow IO" flag after the UI thread has started, and then whitelists in the many places where we're accidentally doing IO from the UI thread. (I've filed bugs on all of those cases.) BUG=59847, 60630, 60641, 60211, 60634, 60643, 24163, 60825 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=63986

Patch Set 1 #

Patch Set 2 : more #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -4 lines) Patch
M base/nss_util.cc View 2 chunks +5 lines, -0 lines 1 comment Download
M chrome/browser/browser.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/browser_init.cc View 2 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/browser_main.cc View 2 chunks +9 lines, -0 lines 0 comments Download
M chrome/browser/browser_shutdown.cc View 2 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/options/import_data_handler.cc View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/crx_installer.cc View 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/spellcheck_host.cc View 2 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/visitedlink_master.cc View 3 chunks +8 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Evan Martin
10 years, 1 month ago (2010-10-26 21:56:23 UTC) #1
jam
lgtm
10 years, 1 month ago (2010-10-26 23:55:32 UTC) #2
willchan no longer on Chromium
LGTM2 http://codereview.chromium.org/4146004/diff/3001/4001 File base/nss_util.cc (right): http://codereview.chromium.org/4146004/diff/3001/4001#newcode316 base/nss_util.cc:316: // http://code.google.com/p/chromium/issues/detail?id=59847 The referenced bug is for this ...
10 years, 1 month ago (2010-10-27 00:06:18 UTC) #3
Evan Martin
10 years, 1 month ago (2010-10-27 00:19:34 UTC) #4
On 2010/10/27 00:06:18, willchan wrote:
> http://codereview.chromium.org/4146004/diff/3001/4001#newcode316
> base/nss_util.cc:316: //  
> http://code.google.com/p/chromium/issues/detail?id=59847
> The referenced bug is for this happening on the IO thread, which disagrees
with
> your changelist description.  if this happens on the IO thread, then that's
> fine, it's a known bug and it'll be hard to work around.  If it's the UI
thread,
> then I'm a bit more disturbed.  Can you clarify?

Hm, I was hitting it on the UI thread.  I should've pasted in a call stack -- it
was something about setting up certificates IIRC.  I will track it down further.

Powered by Google App Engine
This is Rietveld 408576698