summaryrefslogtreecommitdiffstats
path: root/net/http/http_cache_transaction.cc
diff options
context:
space:
mode:
authorrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 02:10:33 +0000
committerrvargas@chromium.org <rvargas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-04 02:10:33 +0000
commit4a24453d97a5d30f3dade0ee56dd63622b193939 (patch)
tree9dd268b5050cfd1dd8b88dcb86fec0362e439197 /net/http/http_cache_transaction.cc
parent537f1adc36a153f919335c54c7232205cefede48 (diff)
downloadchromium_src-4a24453d97a5d30f3dade0ee56dd63622b193939.zip
chromium_src-4a24453d97a5d30f3dade0ee56dd63622b193939.tar.gz
chromium_src-4a24453d97a5d30f3dade0ee56dd63622b193939.tar.bz2
Http cache: Make sure that the we only transition to
STATE_NOTIFY_BEFORE_SEND_HEADERS when we have a response. BUG=78105 TEST=net_unittests Review URL: http://codereview.chromium.org/6691016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80290 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_cache_transaction.cc')
-rw-r--r--net/http/http_cache_transaction.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/http/http_cache_transaction.cc b/net/http/http_cache_transaction.cc
index 201f647..e217893 100644
--- a/net/http/http_cache_transaction.cc
+++ b/net/http/http_cache_transaction.cc
@@ -1169,7 +1169,6 @@ int HttpCache::Transaction::DoCacheReadResponse() {
int HttpCache::Transaction::DoCacheReadResponseComplete(int result) {
cache_callback_->Release(); // Balance the AddRef from DoCacheReadResponse.
- next_state_ = STATE_NOTIFY_BEFORE_SEND_HEADERS;
net_log_.EndEventWithNetErrorCode(NetLog::TYPE_HTTP_CACHE_READ_INFO, result);
if (result != io_buf_len_ ||
@@ -1179,6 +1178,7 @@ int HttpCache::Transaction::DoCacheReadResponseComplete(int result) {
return ERR_CACHE_READ_FAILURE;
}
+ next_state_ = STATE_NOTIFY_BEFORE_SEND_HEADERS;
return OK;
}