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

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

Issue 2860030: Fixes a DCHECK when visiting chrome://theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 6 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 | chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/resource_dispatcher_host.cc
===================================================================
--- chrome/browser/renderer_host/resource_dispatcher_host.cc (revision 50939)
+++ chrome/browser/renderer_host/resource_dispatcher_host.cc (working copy)
@@ -1298,6 +1298,11 @@
DCHECK(request);
RESOURCE_LOG("OnReadCompleted: " << request->url().spec());
ResourceDispatcherHostRequestInfo* info = InfoForRequest(request);
+
+ // OnReadCompleted can be called without Read (e.g., for chrome:// URLs).
+ // Make sure we know that a read has begun.
+ info->set_has_started_reading(true);
+
if (PauseRequestIfNeeded(info)) {
info->set_paused_read_bytes(bytes_read);
RESOURCE_LOG("OnReadCompleted pausing: " << request->url().spec());
« no previous file with comments | « no previous file | chrome/browser/renderer_host/resource_dispatcher_host_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698