Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(594)

Unified Diff: chromecast/shell/browser/cast_content_browser_client.cc

Issue 518773003: Chromecast: end-to-end browser test based on content::BrowserTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast-browser-process
Patch Set: rebase Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.cc ('k') | chromecast/shell/browser/test/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 919b19007df0d0bd63cd5c8d69572ac3279400fe..af3993b3b27ed0d986217092b15e7e58ca042d6f 100644
--- a/chromecast/shell/browser/cast_content_browser_client.cc
+++ b/chromecast/shell/browser/cast_content_browser_client.cc
@@ -14,6 +14,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/file_descriptor_info.h"
#include "content/public/browser/render_process_host.h"
@@ -30,6 +31,10 @@ CastContentBrowserClient::CastContentBrowserClient()
}
CastContentBrowserClient::~CastContentBrowserClient() {
+ content::BrowserThread::DeleteSoon(
+ content::BrowserThread::IO,
+ FROM_HERE,
+ url_request_context_factory_.release());
}
content::BrowserMainParts* CastContentBrowserClient::CreateBrowserMainParts(
« no previous file with comments | « chromecast/shell/browser/cast_browser_main_parts.cc ('k') | chromecast/shell/browser/test/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698