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

Issue 10831104: Safely handle uninitialized load_timing info in ResourceResponseHead. (Closed)

Created:
8 years, 4 months ago by James Simonsen
Modified:
8 years, 4 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Pan
Visibility:
Public.

Description

Safely handle uninitialized load_timing info in ResourceResponseHead. This is often uninitialized in UI and browser tests. This blocks issue 10829031 from landing. BUG=139093 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149761

Patch Set 1 #

Patch Set 2 : Correct patch #

Total comments: 4

Patch Set 3 : Use override and locals #

Total comments: 2

Patch Set 4 : Use temporary messages #

Unified diffs Side-by-side diffs Delta from patch set Stats (+121 lines, -34 lines) Patch
M content/common/resource_dispatcher.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/common/resource_dispatcher_unittest.cc View 1 2 3 6 chunks +119 lines, -33 lines 0 comments Download

Messages

Total messages: 8 (0 generated)
James Simonsen
8 years, 4 months ago (2012-08-01 01:25:59 UTC) #1
darin (slow to review)
https://chromiumcodereview.appspot.com/10831104/diff/2001/content/common/resource_dispatcher_unittest.cc File content/common/resource_dispatcher_unittest.cc (right): https://chromiumcodereview.appspot.com/10831104/diff/2001/content/common/resource_dispatcher_unittest.cc#newcode358 content/common/resource_dispatcher_unittest.cc:358: IPC::Message* response_message = nit: no need to heap allocate ...
8 years, 4 months ago (2012-08-02 04:53:15 UTC) #2
James Simonsen
Sorry, I'd lazily copied from the other tests in this file. They needed the same ...
8 years, 4 months ago (2012-08-02 19:02:57 UTC) #3
darin (slow to review)
http://codereview.chromium.org/10831104/diff/13001/content/common/resource_dispatcher_unittest.cc File content/common/resource_dispatcher_unittest.cc (right): http://codereview.chromium.org/10831104/diff/13001/content/common/resource_dispatcher_unittest.cc#newcode261 content/common/resource_dispatcher_unittest.cc:261: dispatcher_->OnMessageReceived(response_message); typo? looks like you need to pass data_message ...
8 years, 4 months ago (2012-08-02 20:30:03 UTC) #4
James Simonsen
Bummer that old test passed even with the typo. :( http://codereview.chromium.org/10831104/diff/13001/content/common/resource_dispatcher_unittest.cc File content/common/resource_dispatcher_unittest.cc (right): http://codereview.chromium.org/10831104/diff/13001/content/common/resource_dispatcher_unittest.cc#newcode261 ...
8 years, 4 months ago (2012-08-02 21:29:32 UTC) #5
darin (slow to review)
LGTM
8 years, 4 months ago (2012-08-02 22:12:19 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/simonjam@chromium.org/10831104/10002
8 years, 4 months ago (2012-08-02 23:14:58 UTC) #7
commit-bot: I haz the power
8 years, 4 months ago (2012-08-03 01:02:17 UTC) #8
Change committed as 149761

Powered by Google App Engine
This is Rietveld 408576698