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

Issue 11761022: Fixing possible read on URLRequest when there is no more data. (Closed)

Created:
7 years, 11 months ago by Shishir
Modified:
7 years, 11 months ago
CC:
chromium-reviews, shishir+watch_chromium.org, dominich+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Fixing possible read on URLRequest when there is no more data. BUG=167521 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175257

Patch Set 1 #

Total comments: 9

Patch Set 2 : Addressing rvargas's comments. #

Total comments: 2

Patch Set 3 : Moving the read check to a function. #

Patch Set 4 : Adding missing todo #

Total comments: 2

Patch Set 5 : Moving error checking statement. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -11 lines) Patch
M chrome/browser/predictors/resource_prefetcher.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/predictors/resource_prefetcher.cc View 1 2 3 4 3 chunks +20 lines, -11 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Shishir
PTAL. I would like to merge this into M25.
7 years, 11 months ago (2013-01-03 22:00:26 UTC) #1
rvargas (doing something else)
https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc#newcode170 chrome/browser/predictors/resource_prefetcher.cc:170: status = request->Read(buffer, kResourceBufferSizeBytes, &bytes_read); I'm surprised that we ...
7 years, 11 months ago (2013-01-03 23:16:09 UTC) #2
Shishir
PTAL https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc#newcode170 chrome/browser/predictors/resource_prefetcher.cc:170: status = request->Read(buffer, kResourceBufferSizeBytes, &bytes_read); On 2013/01/03 23:16:09, ...
7 years, 11 months ago (2013-01-04 00:29:04 UTC) #3
rvargas (doing something else)
https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/1/chrome/browser/predictors/resource_prefetcher.cc#newcode170 chrome/browser/predictors/resource_prefetcher.cc:170: status = request->Read(buffer, kResourceBufferSizeBytes, &bytes_read); On 2013/01/04 00:29:04, Shishir ...
7 years, 11 months ago (2013-01-04 01:04:59 UTC) #4
Shishir
Hi Ricardo, I have attempted to do what you suggested, but it looks a bit ...
7 years, 11 months ago (2013-01-04 01:29:15 UTC) #5
rvargas (doing something else)
I don't fully follow what you're saying. * The code is the same on trunk ...
7 years, 11 months ago (2013-01-04 02:02:40 UTC) #6
Shishir
PTAL. https://codereview.chromium.org/11761022/diff/7001/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/7001/chrome/browser/predictors/resource_prefetcher.cc#newcode172 chrome/browser/predictors/resource_prefetcher.cc:172: if (request->status().error()) { On 2013/01/04 02:02:40, rvargas wrote: ...
7 years, 11 months ago (2013-01-04 02:21:14 UTC) #7
rvargas (doing something else)
oops https://codereview.chromium.org/11761022/diff/2003/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/2003/chrome/browser/predictors/resource_prefetcher.cc#newcode172 chrome/browser/predictors/resource_prefetcher.cc:172: if (request->status().error()) { This is an interesting point. ...
7 years, 11 months ago (2013-01-04 04:31:04 UTC) #8
Shishir
PTAL https://codereview.chromium.org/11761022/diff/2003/chrome/browser/predictors/resource_prefetcher.cc File chrome/browser/predictors/resource_prefetcher.cc (right): https://codereview.chromium.org/11761022/diff/2003/chrome/browser/predictors/resource_prefetcher.cc#newcode172 chrome/browser/predictors/resource_prefetcher.cc:172: if (request->status().error()) { On 2013/01/04 04:31:04, rvargas wrote: ...
7 years, 11 months ago (2013-01-04 19:52:32 UTC) #9
rvargas (doing something else)
lgtm
7 years, 11 months ago (2013-01-04 21:06:39 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/shishir@chromium.org/11761022/14001
7 years, 11 months ago (2013-01-04 22:42:04 UTC) #11
commit-bot: I haz the power
7 years, 11 months ago (2013-01-05 01:51:38 UTC) #12
Message was sent while issue was closed.
Change committed as 175257

Powered by Google App Engine
This is Rietveld 408576698