| Index: content/browser/resource_context_impl.cc
|
| diff --git a/content/browser/resource_context_impl.cc b/content/browser/resource_context_impl.cc
|
| index a4f0303e0da4b59ec9a25e6565a855fc4c280659..017e08dc3c9f85ed3fef7872524502be1bc09f6c 100644
|
| --- a/content/browser/resource_context_impl.cc
|
| +++ b/content/browser/resource_context_impl.cc
|
| @@ -6,6 +6,7 @@
|
|
|
| #include <stdint.h>
|
|
|
| +#include "base/bind.h"
|
| #include "base/logging.h"
|
| #include "content/browser/fileapi/chrome_blob_storage_context.h"
|
| #include "content/browser/loader/resource_dispatcher_host_impl.h"
|
| @@ -37,8 +38,13 @@ std::string ReturnEmptySalt() {
|
|
|
|
|
| ResourceContext::ResourceContext() {
|
| - if (ResourceDispatcherHostImpl::Get())
|
| - ResourceDispatcherHostImpl::Get()->AddResourceContext(this);
|
| + ResourceDispatcherHostImpl* rdhi = ResourceDispatcherHostImpl::Get();
|
| + if (rdhi) {
|
| + BrowserThread::PostTask(
|
| + BrowserThread::IO, FROM_HERE,
|
| + base::Bind(&ResourceDispatcherHostImpl::AddResourceContext,
|
| + base::Unretained(rdhi), this));
|
| + }
|
| }
|
|
|
| ResourceContext::~ResourceContext() {
|
|
|