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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_service.cc

Issue 10054007: Assert we do not leak requests for the system and safe browsing contexts. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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 | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_service.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_service.cc b/chrome/browser/safe_browsing/safe_browsing_service.cc
index 8ab946eb13da454dcd6703eb65161e32cb95dbaa..a14c250bf49d0e3fec0b74c359619c12c705d129 100644
--- a/chrome/browser/safe_browsing/safe_browsing_service.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_service.cc
@@ -643,6 +643,8 @@ void SafeBrowsingService::InitURLRequestContextOnIOThread(
void SafeBrowsingService::DestroyURLRequestContextOnIOThread() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
+ url_request_context_->AssertNoURLRequests();
+
// Need to do the CheckForLeaks on IOThread instead of in ShutDown where
// url_request_context_getter_ is cleared, since the URLRequestContextGetter
// will PostTask to IOTread to delete itself.
« no previous file with comments | « chrome/browser/io_thread.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698