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

Unified Diff: chrome/browser/dom_ui/chrome_url_data_manager.cc

Issue 20162: Fix a browser crash when the URLRequestChromeJob goes away... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/dom_ui/chrome_url_data_manager.cc
===================================================================
--- chrome/browser/dom_ui/chrome_url_data_manager.cc (revision 9407)
+++ chrome/browser/dom_ui/chrome_url_data_manager.cc (working copy)
@@ -231,7 +231,7 @@
// Forward this data on to the pending URLRequest, if it exists.
PendingRequestMap::iterator i = pending_requests_.find(request_id);
if (i != pending_requests_.end()) {
- URLRequestChromeJob* job = i->second;
+ scoped_refptr<URLRequestChromeJob> job = i->second;
pending_requests_.erase(i);
job->DataAvailable(bytes);
}
@@ -291,8 +291,8 @@
int bytes_read;
if (pending_buf_.get()) {
CompleteRead(pending_buf_, pending_buf_size_, &bytes_read);
+ pending_buf_ = NULL;
darin (slow to review) 2009/02/09 22:49:15 so this part of the change is no longer needed rig
rvargas (doing something else) 2009/02/09 23:01:52 Correct, it's not really needed but now I sort of
NotifyReadComplete(bytes_read);
- pending_buf_ = NULL;
}
} else {
// The request failed.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698