summaryrefslogtreecommitdiffstats
path: root/src/core/url_request_custom_job.h
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@theqtcompany.com>2016-01-14 10:42:21 +0100
committerJoerg Bornemann <joerg.bornemann@theqtcompany.com>2016-01-15 08:50:08 +0000
commit7c7ee9a94bd566bd94e1548fb4bb6b5ec774c0d1 (patch)
tree74fa041a98759af730b36aed21cb6e3d98b18439 /src/core/url_request_custom_job.h
parenteced172d4ebf573888a14990895f4b6f2ea74a73 (diff)
Have a WeakPtrFactory per thread in URLRequestCustomJob
We must separate WeakPtrs per thread. Otherwise we run into a DCHECK in weak_ptr.cc: "WeakPtrs must be checked on the same sequenced thread.". Done-by: Allan Change-Id: I6ae971b01fb8f8ecda13e50798d6315dcf19d96e Reviewed-by: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
Diffstat (limited to 'src/core/url_request_custom_job.h')
-rw-r--r--src/core/url_request_custom_job.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/url_request_custom_job.h b/src/core/url_request_custom_job.h
index a994c467a..be5cae43c 100644
--- a/src/core/url_request_custom_job.h
+++ b/src/core/url_request_custom_job.h
@@ -87,7 +87,8 @@ private:
int m_error;
GURL m_redirect;
bool m_started;
- base::WeakPtrFactory<URLRequestCustomJob> m_weakFactory;
+ base::WeakPtrFactory<URLRequestCustomJob> m_weakFactoryIO;
+ base::WeakPtrFactory<URLRequestCustomJob> m_weakFactoryUI;
friend class URLRequestCustomJobDelegate;