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

Unified Diff: chrome/browser/renderer_host/safe_browsing_resource_handler.cc

Issue 67067: Merge 13052 - Speculative fix for a crash in resource handlers.... (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/branches/172/src/
Patch Set: Created 11 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/renderer_host/safe_browsing_resource_handler.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/safe_browsing_resource_handler.cc
===================================================================
--- chrome/browser/renderer_host/safe_browsing_resource_handler.cc (revision 13559)
+++ chrome/browser/renderer_host/safe_browsing_resource_handler.cc (working copy)
@@ -37,6 +37,13 @@
}
}
+SafeBrowsingResourceHandler::~SafeBrowsingResourceHandler() {
+ // If we're being deleted before the SafeBrowsing check has completed, cancel
+ // the check.
+ if (in_safe_browsing_check_)
+ safe_browsing_->CancelCheck(this);
+}
+
bool SafeBrowsingResourceHandler::OnUploadProgress(int request_id,
uint64 position,
uint64 size) {
« no previous file with comments | « chrome/browser/renderer_host/safe_browsing_resource_handler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698