summaryrefslogtreecommitdiffstats
path: root/net/url_request/url_request_throttler_entry.cc
diff options
context:
space:
mode:
authorjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 02:26:47 +0000
committerjoi@chromium.org <joi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-25 02:26:47 +0000
commit30e427d9fb8d50a2597a42e33f63ec97e9647d82 (patch)
tree7b30b8a24e6c8638c8d30fdd43f1dd103a99c754 /net/url_request/url_request_throttler_entry.cc
parent6ebed4ca8ba16c970861541e67cec3b555a27d30 (diff)
downloadchromium_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.cc1
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;