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

Issue 2218013002: Ensure setEncodedSizeMemoryUsage() is called when |m_data| is cleared (Closed)

Created:
4 years, 4 months ago by hiroshige
Modified:
4 years, 1 month ago
Reviewers:
hajimehoshi, yhirano
CC:
chromium-reviews, tyoshino+watch_chromium.org, Yoav Weiss, gavinp+loader_chromium.org, blink-reviews, loading-reviews+fetch_chromium.org, Nate Chapin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Ensure setEncodedSizeMemoryUsage() is called when |m_data| is cleared This CL - Moves setEncodedSizeMemoryUsage(0) calls from the call sites of clearData() into the body of clearData(), which doesn't affect the behavior, and - Replaces |m_data.clear()| in Resource.cpp with clearData(), so that the encodedSizeMemoryUsage is updated. BUG=643135 Committed: https://crrev.com/82c4a08a0b9d5c3edf826c3cd1b16e2318dcc36b Cr-Commit-Position: refs/heads/master@{#430919}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : Fix rebase error #

Patch Set 4 : fix #

Patch Set 5 : Rebase #

Total comments: 2

Patch Set 6 : Remove setEncodedSizeMemoryUsage() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -12 lines) Patch
M third_party/WebKit/Source/core/fetch/CSSStyleSheetResource.cpp View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.h View 1 2 3 4 5 2 chunks +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/Resource.cpp View 1 2 3 4 5 4 chunks +8 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ScriptResource.cpp View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 27 (18 generated)
hiroshige
PTAL.
4 years, 1 month ago (2016-11-07 09:22:50 UTC) #10
hajimehoshi
lgtm
4 years, 1 month ago (2016-11-07 11:03:42 UTC) #13
yhirano
LGTM description: s/such that/so that/, I guess? https://codereview.chromium.org/2218013002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2218013002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.h#newcode402 third_party/WebKit/Source/core/fetch/Resource.h:402: void setEncodedSizeMemoryUsage(size_t); ...
4 years, 1 month ago (2016-11-08 01:59:41 UTC) #14
hiroshige
> description: s/such that/so that/, I guess? Thanks, fixed. https://codereview.chromium.org/2218013002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.h File third_party/WebKit/Source/core/fetch/Resource.h (right): https://codereview.chromium.org/2218013002/diff/80001/third_party/WebKit/Source/core/fetch/Resource.h#newcode402 third_party/WebKit/Source/core/fetch/Resource.h:402: ...
4 years, 1 month ago (2016-11-09 07:33:43 UTC) #16
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/2218013002/100001
4 years, 1 month ago (2016-11-09 07:34:02 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/328406)
4 years, 1 month ago (2016-11-09 11:42:13 UTC) #21
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/2218013002/100001
4 years, 1 month ago (2016-11-09 11:43:54 UTC) #23
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 1 month ago (2016-11-09 13:24:52 UTC) #25
commit-bot: I haz the power
4 years, 1 month ago (2016-11-09 13:33:02 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/82c4a08a0b9d5c3edf826c3cd1b16e2318dcc36b
Cr-Commit-Position: refs/heads/master@{#430919}

Powered by Google App Engine
This is Rietveld 408576698