summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 01:04:40 +0000
committeravi@google.com <avi@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-08-22 01:04:40 +0000
commita6d359ddc7ed39b4979a405d3920c8e81ecf299c (patch)
tree8f867305c97b0b9bd4c39fb70bcfb684edb5642f /net
parent2d042c03cc11953f638da3e1e9dff991fc951f9d (diff)
downloadchromium_src-a6d359ddc7ed39b4979a405d3920c8e81ecf299c.zip
chromium_src-a6d359ddc7ed39b4979a405d3920c8e81ecf299c.tar.gz
chromium_src-a6d359ddc7ed39b4979a405d3920c8e81ecf299c.tar.bz2
Bandaid to fix build breakage; this isn't the real cause though.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@1202 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/url_request/url_request_job_manager.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/net/url_request/url_request_job_manager.h b/net/url_request/url_request_job_manager.h
index ded3842..b5a5060 100644
--- a/net/url_request/url_request_job_manager.h
+++ b/net/url_request/url_request_job_manager.h
@@ -90,11 +90,23 @@ class URLRequestJobManager {
// callers to be on the same thread, we don't worry about threads racing to
// set the allowed thread.
bool IsAllowedThread() const {
+#if 0
if (!allowed_thread_initialized_) {
allowed_thread_ = PlatformThread::CurrentId();
allowed_thread_initialized_ = true;
}
return allowed_thread_ == PlatformThread::CurrentId();
+#else
+ // The previous version of this check used GetCurrentThread on Windows to
+ // get thread handles to compare. Unfortunately, GetCurrentThread returns
+ // a constant psuedo-handle (0xFFFFFFFE), and therefore IsAllowedThread
+ // always returned true. The above code that's turned off is the correct
+ // code, but causes the tree to turn red because some caller isn't
+ // respecting our thread requirements. We're turning off the check for now;
+ // bug http://b/issue?id=1338969 has been filed to fix things and turn the
+ // check back on.
+ return true;
+#endif
}
#endif