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

Issue 252633005: Enable WTF::HashSet<OwnPtr<> > (Closed)

Created:
6 years, 8 months ago by Mikhail
Modified:
6 years, 8 months ago
Reviewers:
Erik Corry, eseidel
CC:
blink-reviews, ojan, Mikhail, adamk+blink_chromium.org, Inactive, abarth-chromium, Erik Corry, eseidel, jochen (gone - plz use gerrit), Nico, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Enable WTF::HashSet<OwnPtr<> > Allow HashSet to have OwnPtr elements, this helps in cases when the container needs to own its elements. The client does not need to care about explicit calling 'deleteAllValues' funcion (it can be deprecated now). The patch contains unit tests, and examples of real using HashSet<OwnPtr<> > in XPathParser. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=172738

Patch Set 1 #

Patch Set 2 : Fixed implicit PassRefPtr -> RefPtr conversion in PtrHash<RefPtr>::hash() #

Patch Set 3 : Fixed implicit conversion in PtrHash<RefPtr>::equal() #

Total comments: 5

Patch Set 4 : Met comments from Erik Corry #

Unified diffs Side-by-side diffs Delta from patch set Stats (+153 lines, -14 lines) Patch
M Source/core/xml/XPathParser.h View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/core/xml/XPathParser.cpp View 5 chunks +2 lines, -6 lines 0 comments Download
M Source/wtf/HashFunctions.h View 1 2 3 4 chunks +19 lines, -0 lines 0 comments Download
M Source/wtf/HashSet.h View 1 2 4 chunks +5 lines, -4 lines 0 comments Download
M Source/wtf/HashSetTest.cpp View 1 2 3 2 chunks +111 lines, -0 lines 0 comments Download
M Source/wtf/HashTable.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M Source/wtf/HashTraits.h View 1 chunk +5 lines, -0 lines 0 comments Download
M Source/wtf/OwnPtr.h View 3 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mikhail
PTAL
6 years, 8 months ago (2014-04-28 06:22:01 UTC) #1
eseidel
lgtm So much better. thank you. Erik Corry, jyasskin are better template reviewers than I, ...
6 years, 8 months ago (2014-04-28 06:31:34 UTC) #2
Erik Corry
LGTM https://codereview.chromium.org/252633005/diff/40001/Source/wtf/HashFunctions.h File Source/wtf/HashFunctions.h (right): https://codereview.chromium.org/252633005/diff/40001/Source/wtf/HashFunctions.h#newcode164 Source/wtf/HashFunctions.h:164: RELEASE_ASSERT(!a || a.get() != b.get()); I understand why ...
6 years, 8 months ago (2014-04-28 07:53:02 UTC) #3
Mikhail
Thanks for having a look! https://codereview.chromium.org/252633005/diff/40001/Source/wtf/HashFunctions.h File Source/wtf/HashFunctions.h (right): https://codereview.chromium.org/252633005/diff/40001/Source/wtf/HashFunctions.h#newcode164 Source/wtf/HashFunctions.h:164: RELEASE_ASSERT(!a || a.get() != ...
6 years, 8 months ago (2014-04-28 08:00:39 UTC) #4
Mikhail
The CQ bit was checked by mikhail.pozdnyakov@intel.com
6 years, 8 months ago (2014-04-28 09:02:03 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mikhail.pozdnyakov@intel.com/252633005/60001
6 years, 8 months ago (2014-04-28 09:02:22 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-28 09:54:18 UTC) #7
Message was sent while issue was closed.
Change committed as 172738

Powered by Google App Engine
This is Rietveld 408576698