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

Issue 6591108: IDMap derives from NonThreadSafe. (Closed)

Created:
9 years, 9 months ago by cbentzel
Modified:
9 years, 7 months ago
CC:
chromium-reviews, brettw-cc_chromium.org
Visibility:
Public.

Description

IDMap derives from NonThreadSafe. During a code review I noticed that RenderViewHost::FromID was being called from the IO thread, but there were no automated assertions that fired. BUG=None TEST=DCHECK fires when I add bad code. Otherwise Chrome works without crashing in Debug build. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=77232

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove TODO #

Patch Set 3 : Detach on destruction #

Unified diffs Side-by-side diffs Delta from patch set Stats (+22 lines, -2 lines) Patch
M base/id_map.h View 1 2 8 chunks +22 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
cbentzel
Is it OK for something in base/ to include something from base/threading?
9 years, 9 months ago (2011-03-02 18:34:54 UTC) #1
cbentzel
On 2011/03/02 18:34:54, cbentzel wrote: > Is it OK for something in base/ to include ...
9 years, 9 months ago (2011-03-02 18:38:43 UTC) #2
brettw
LGTM http://codereview.chromium.org/6591108/diff/1/base/id_map.h File base/id_map.h (right): http://codereview.chromium.org/6591108/diff/1/base/id_map.h#newcode44 base/id_map.h:44: // TODO(cbentzel): Fix users of IDMap and remove ...
9 years, 9 months ago (2011-03-02 18:42:47 UTC) #3
cbentzel
http://codereview.chromium.org/6591108/diff/1/base/id_map.h File base/id_map.h (right): http://codereview.chromium.org/6591108/diff/1/base/id_map.h#newcode44 base/id_map.h:44: // TODO(cbentzel): Fix users of IDMap and remove this. ...
9 years, 9 months ago (2011-03-02 19:02:45 UTC) #4
cbentzel
Good number of tests are hitting the DCHECK - will validate if it's an actual ...
9 years, 9 months ago (2011-03-02 20:49:22 UTC) #5
cbentzel
On 2011/03/02 20:49:22, cbentzel wrote: > Good number of tests are hitting the DCHECK - ...
9 years, 9 months ago (2011-03-04 13:38:34 UTC) #6
cbentzel
Also - any idea why IDMap's are exempt from the POD-only static style guide rule? ...
9 years, 9 months ago (2011-03-04 13:39:22 UTC) #7
brettw
On Fri, Mar 4, 2011 at 5:39 AM, <cbentzel@chromium.org> wrote: > Also - any idea ...
9 years, 9 months ago (2011-03-04 15:55:05 UTC) #8
brettw at google
9 years, 9 months ago (2011-03-04 15:56:49 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698