diff options
author | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 19:45:23 +0000 |
---|---|---|
committer | mbelshe@google.com <mbelshe@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-03 19:45:23 +0000 |
commit | c2b11ae3be4d9c614530270ca2904cd452f47046 (patch) | |
tree | 10563e73b7bb6915844382f713acea62f90afb26 /base/observer_list_threadsafe.h | |
parent | 6a951292f660b48c79ec72e74f68c4c6e4adebe1 (diff) | |
download | chromium_src-c2b11ae3be4d9c614530270ca2904cd452f47046.zip chromium_src-c2b11ae3be4d9c614530270ca2904cd452f47046.tar.gz chromium_src-c2b11ae3be4d9c614530270ca2904cd452f47046.tar.bz2 |
Add a TODO from Jar.
Review URL: http://codereview.chromium.org/9262
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@4475 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/observer_list_threadsafe.h')
-rw-r--r-- | base/observer_list_threadsafe.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/observer_list_threadsafe.h b/base/observer_list_threadsafe.h index 113805f..70a76c8 100644 --- a/base/observer_list_threadsafe.h +++ b/base/observer_list_threadsafe.h @@ -64,6 +64,9 @@ class ObserverListThreadSafe : void AddObserver(ObserverType* obs) { ObserverList<ObserverType>* list = NULL; MessageLoop* loop = MessageLoop::current(); + // TODO(mbelshe): Get rid of this check. Its needed right now because + // Time currently triggers usage of the ObserverList. + // And unittests use time without a MessageLoop. if (!loop) return; // Some unittests may access this without a message loop. { |