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

Issue 449044: Adding instrument to NotificationRegistrar to check... (Closed)

Created:
11 years ago by huanr
Modified:
9 years ago
Reviewers:
eroman
CC:
chromium-reviews_googlegroups.com, Erik does not do reviews
Visibility:
Public.

Description

Adding instrument to NotificationRegistrar to check Add() and Remove() are called from same thread. Note I already checked in a fix for the bug. The CL is trying to check whether the issue exists in other code path. TEST=none BUG=27834 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=33802

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 1

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -0 lines) Patch
M chrome/browser/chrome_thread.h View 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_thread.cc View 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/common/notification_registrar.h View 1 3 chunks +6 lines, -0 lines 0 comments Download
M chrome/common/notification_registrar.cc View 1 5 chunks +25 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
huanr
11 years ago (2009-12-01 03:39:21 UTC) #1
eroman
Pity you can't use the base/not_thread_safe.h base class, since that is basically what you want ...
11 years ago (2009-12-01 04:16:37 UTC) #2
huanr
Updated. Can you take another look?
11 years ago (2009-12-03 02:24:59 UTC) #3
eroman
11 years ago (2009-12-04 00:57:35 UTC) #4
lgtm

http://codereview.chromium.org/449044/diff/7001/6005
File chrome/browser/chrome_thread.cc (right):

http://codereview.chromium.org/449044/diff/7001/6005#newcode65
chrome/browser/chrome_thread.cc:65: return !!chrome_threads_[identifier];
minor style-nit:

could group it into one line:

return (identifier >= 0 && identifier < ID_COUNT &&
chrome_threads_[identifier]);

Powered by Google App Engine
This is Rietveld 408576698