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

Issue 2767033003: [HttpCache::Transaction] Ensure each state only sets the next state once (Closed)

Created:
3 years, 9 months ago by jkarlin
Modified:
3 years, 9 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[HttpCache::Transaction] Ensure each state only sets the next state once To aid in readability, ensure that the next state is only set once per state. This way the reader knows for sure what will happen after the state has been set. BUG=703923 Review-Url: https://codereview.chromium.org/2767033003 Cr-Commit-Position: refs/heads/master@{#458840} Committed: https://chromium.googlesource.com/chromium/src/+/5de449fdaae6cb58ce02aed512f383857ef6bcfe

Patch Set 1 #

Patch Set 2 : Nits #

Patch Set 3 : Rebase #

Patch Set 4 : Nits #

Patch Set 5 : Verify that we're in the do loop #

Patch Set 6 : Rebase #

Patch Set 7 : Better dcheck message #

Total comments: 11

Patch Set 8 : Address comments from PS7 #

Patch Set 9 : AutoReset #

Unified diffs Side-by-side diffs Delta from patch set Stats (+137 lines, -113 lines) Patch
M net/http/http_cache_transaction.h View 1 2 3 4 5 6 7 2 chunks +7 lines, -0 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 5 6 7 8 65 chunks +130 lines, -113 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 40 (33 generated)
Randy Smith (Not in Mondays)
Thanks very much for doing this, Josh; it's small, but I think it'll be quite ...
3 years, 9 months ago (2017-03-22 15:42:12 UTC) #24
jkarlin
PTAL! https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc#newcode720 net/http/http_cache_transaction.cc:720: in_do_loop_ = true; On 2017/03/22 15:42:12, Randy Smith ...
3 years, 9 months ago (2017-03-22 17:12:00 UTC) #28
Randy Smith (Not in Mondays)
lgtm https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc#newcode720 net/http/http_cache_transaction.cc:720: in_do_loop_ = true; On 2017/03/22 17:12:00, jkarlin wrote: ...
3 years, 9 months ago (2017-03-22 17:16:08 UTC) #30
jkarlin
PTAL one more time. Thanks! https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc#newcode720 net/http/http_cache_transaction.cc:720: in_do_loop_ = true; On ...
3 years, 9 months ago (2017-03-22 17:32:55 UTC) #33
Randy Smith (Not in Mondays)
Still LGTM. https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc File net/http/http_cache_transaction.cc (right): https://codereview.chromium.org/2767033003/diff/120001/net/http/http_cache_transaction.cc#newcode720 net/http/http_cache_transaction.cc:720: in_do_loop_ = true; On 2017/03/22 17:32:55, jkarlin ...
3 years, 9 months ago (2017-03-22 17:37:05 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2767033003/160001
3 years, 9 months ago (2017-03-22 17:38:20 UTC) #37
commit-bot: I haz the power
3 years, 9 months ago (2017-03-22 19:44:32 UTC) #40
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://chromium.googlesource.com/chromium/src/+/5de449fdaae6cb58ce02aed512f3...

Powered by Google App Engine
This is Rietveld 408576698