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

Issue 11415239: Add STLSetDifference to stl_util.h, because std::set_difference is extremely (Closed)

Created:
8 years ago by not at google - send to devlin
Modified:
8 years ago
CC:
chromium-reviews, erikwright+watch_chromium.org, browser-components-watch_chromium.org
Visibility:
Public.

Description

Add STLSetDifference to stl_util.h, because std::set_difference is extremely awkward to work with. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171321

Patch Set 1 #

Patch Set 2 : revert change to url_index_private_data.cc #

Total comments: 2

Patch Set 3 : add tests #

Total comments: 10

Patch Set 4 : blah #

Total comments: 2

Patch Set 5 : import order #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
M base/base.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M base/stl_util.h View 1 2 3 2 chunks +27 lines, -0 lines 0 comments Download
A base/stl_util_unittest.cc View 1 2 3 4 1 chunk +82 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
not at google - send to devlin
Fight!
8 years ago (2012-11-30 22:29:39 UTC) #1
not at google - send to devlin
I'd actually rather put this in something like base/set_util.h since the fact that it's implemented ...
8 years ago (2012-11-30 22:31:18 UTC) #2
not at google - send to devlin
Cool, well, review for realz then I suppose. (I reverted the demonstration change to url_index_private_data.cc ...
8 years ago (2012-11-30 22:41:37 UTC) #3
Jeffrey Yasskin
Questions for willchan to answer below: https://codereview.chromium.org/11415239/diff/4001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/4001/base/stl_util.h#newcode199 base/stl_util.h:199: std::set<T> STLSetDifference(const std::set<T>& ...
8 years ago (2012-11-30 23:00:16 UTC) #4
Jeffrey Yasskin
https://codereview.chromium.org/11415239/diff/4001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/4001/base/stl_util.h#newcode199 base/stl_util.h:199: std::set<T> STLSetDifference(const std::set<T>& a, const std::set<T>& b) { On ...
8 years ago (2012-11-30 23:06:21 UTC) #5
not at google - send to devlin
test added
8 years ago (2012-11-30 23:50:16 UTC) #6
Jeffrey Yasskin
lgtm
8 years ago (2012-11-30 23:59:58 UTC) #7
willchan no longer on Chromium
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode194 base/stl_util.h:194: New code should go into the base namespace. I ...
8 years ago (2012-12-01 17:22:13 UTC) #8
tfarina
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode194 base/stl_util.h:194: On 2012/12/01 17:22:13, willchan wrote: > New code should ...
8 years ago (2012-12-01 17:24:19 UTC) #9
willchan no longer on Chromium
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode194 base/stl_util.h:194: On 2012/12/01 17:24:19, tfarina wrote: > On 2012/12/01 17:22:13, ...
8 years ago (2012-12-01 17:38:44 UTC) #10
not at google - send to devlin
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode194 base/stl_util.h:194: On 2012/12/01 17:38:45, willchan wrote: > On 2012/12/01 17:24:19, ...
8 years ago (2012-12-03 20:22:01 UTC) #11
Jeffrey Yasskin
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode200 base/stl_util.h:200: std::set_difference(a1.begin(), a1.end(), On 2012/12/03 20:22:01, kalman wrote: > On ...
8 years ago (2012-12-03 20:29:35 UTC) #12
not at google - send to devlin
https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h File base/stl_util.h (right): https://codereview.chromium.org/11415239/diff/8001/base/stl_util.h#newcode200 base/stl_util.h:200: std::set_difference(a1.begin(), a1.end(), On 2012/12/03 20:29:35, Jeffrey Yasskin wrote: > ...
8 years ago (2012-12-03 20:39:10 UTC) #13
not at google - send to devlin
it be real
8 years ago (2012-12-04 02:11:10 UTC) #14
not at google - send to devlin
ping
8 years ago (2012-12-05 18:02:40 UTC) #15
willchan no longer on Chromium
oops, looking On Wed, Dec 5, 2012 at 10:02 AM, <kalman@chromium.org> wrote: > ping > ...
8 years ago (2012-12-05 18:25:02 UTC) #16
willchan no longer on Chromium
lgtm https://codereview.chromium.org/11415239/diff/6002/base/stl_util_unittest.cc File base/stl_util_unittest.cc (right): https://codereview.chromium.org/11415239/diff/6002/base/stl_util_unittest.cc#newcode7 base/stl_util_unittest.cc:7: #include "base/stl_util.h" Should go first, as per style ...
8 years ago (2012-12-05 18:27:40 UTC) #17
not at google - send to devlin
https://codereview.chromium.org/11415239/diff/6002/base/stl_util_unittest.cc File base/stl_util_unittest.cc (right): https://codereview.chromium.org/11415239/diff/6002/base/stl_util_unittest.cc#newcode7 base/stl_util_unittest.cc:7: #include "base/stl_util.h" On 2012/12/05 18:27:40, willchan wrote: > Should ...
8 years ago (2012-12-05 18:36:01 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kalman@chromium.org/11415239/16001
8 years ago (2012-12-05 18:36:08 UTC) #19
commit-bot: I haz the power
8 years ago (2012-12-05 21:40:28 UTC) #20
Message was sent while issue was closed.
Change committed as 171321

Powered by Google App Engine
This is Rietveld 408576698