Index: chromecast/shell/browser/cast_content_browser_client.cc |
diff --git a/chromecast/shell/browser/cast_content_browser_client.cc b/chromecast/shell/browser/cast_content_browser_client.cc |
index f8d897e7c279396a0c480295fa75212fe9a94ce2..053cd1622324cb4819f598879acc5049f3360f8a 100644 |
--- a/chromecast/shell/browser/cast_content_browser_client.cc |
+++ b/chromecast/shell/browser/cast_content_browser_client.cc |
@@ -11,6 +11,7 @@ |
#include "chromecast/shell/browser/cast_browser_process.h" |
#include "chromecast/shell/browser/geolocation/cast_access_token_store.h" |
#include "chromecast/shell/browser/url_request_context_factory.h" |
+#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/certificate_request_result_type.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/common/content_descriptors.h" |
@@ -26,6 +27,10 @@ CastContentBrowserClient::CastContentBrowserClient() |
} |
CastContentBrowserClient::~CastContentBrowserClient() { |
+ content::BrowserThread::DeleteSoon( |
+ content::BrowserThread::IO, |
+ FROM_HERE, |
+ url_request_context_factory_.release()); |
} |
content::BrowserMainParts* CastContentBrowserClient::CreateBrowserMainParts( |