diff options
author | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 02:26:47 +0000 |
---|---|---|
committer | joi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-25 02:26:47 +0000 |
commit | 30e427d9fb8d50a2597a42e33f63ec97e9647d82 (patch) | |
tree | 7b30b8a24e6c8638c8d30fdd43f1dd103a99c754 /net/url_request/url_request_throttler_entry.cc | |
parent | 6ebed4ca8ba16c970861541e67cec3b555a27d30 (diff) | |
download | chromium_src-30e427d9fb8d50a2597a42e33f63ec97e9647d82.zip chromium_src-30e427d9fb8d50a2597a42e33f63ec97e9647d82.tar.gz chromium_src-30e427d9fb8d50a2597a42e33f63ec97e9647d82.tar.bz2 |
Add a hard CHECK on use from a single thread to URLRequestThrottlerManager. This is done via a temporary copy of ThreadChecker so it can be made to work in release builds as well.
Revert iterator use back to most optimal approach (previous changes were intended as temporary).
BUG=71721
TEST=net_unittest
Review URL: http://codereview.chromium.org/6581014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76018 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/url_request/url_request_throttler_entry.cc')
-rw-r--r-- | net/url_request/url_request_throttler_entry.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/url_request/url_request_throttler_entry.cc b/net/url_request/url_request_throttler_entry.cc index e5da528..bf97feb 100644 --- a/net/url_request/url_request_throttler_entry.cc +++ b/net/url_request/url_request_throttler_entry.cc @@ -66,6 +66,7 @@ URLRequestThrottlerEntry::URLRequestThrottlerEntry( } bool URLRequestThrottlerEntry::IsEntryOutdated() const { + CHECK(this); // to help track crbug.com/71721 if (entry_lifetime_ms_ == -1) return false; |