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

Issue 1813693002: Fix ListHashSet::AddResult storing a Node* instead of a ValueType*. (Closed)

Created:
4 years, 9 months ago by Yuta Kitamura
Modified:
4 years, 9 months ago
Reviewers:
*haraken, tzik
CC:
chromium-reviews, blink-reviews, blink-reviews-wtf_chromium.org, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix ListHashSet::AddResult storing a Node* instead of a ValueType*. ListHashSet::add() and similar used to return an AddResult value containing a pointer to ListHashSetNode, instead of an actual value specified by the user. This is unintuitive, and the users are forced to append "->m_value" to obtain a pointer to the object they've really added. This patch fixes this issue, and giving what the users usually expect. Interestingly, no production code (outside of tests) made use of storedValue. LinkedHashSet did not have this issue. BUG=582349 Committed: https://crrev.com/981a814af98d73032d8f95b174903e34b9720521 Cr-Commit-Position: refs/heads/master@{#381680}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+12 lines, -7 lines) Patch
M third_party/WebKit/Source/wtf/ListHashSet.h View 2 chunks +10 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/wtf/ListHashSetTest.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (8 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813693002/1
4 years, 9 months ago (2016-03-17 08:06:37 UTC) #2
Yuta Kitamura
PTAL
4 years, 9 months ago (2016-03-17 08:07:05 UTC) #6
haraken
LGTM (ListHashSet is rarely used in the code base.)
4 years, 9 months ago (2016-03-17 08:13:56 UTC) #7
tzik
lgtm
4 years, 9 months ago (2016-03-17 08:38:30 UTC) #8
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-17 10:04:21 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813693002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813693002/1
4 years, 9 months ago (2016-03-17 10:04:59 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 9 months ago (2016-03-17 10:10:01 UTC) #14
commit-bot: I haz the power
4 years, 9 months ago (2016-03-17 10:11:48 UTC) #16
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/981a814af98d73032d8f95b174903e34b9720521
Cr-Commit-Position: refs/heads/master@{#381680}

Powered by Google App Engine
This is Rietveld 408576698