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

Issue 1502373009: Allow std::unordered_*. (Closed)

Created:
5 years ago by davidben
Modified:
4 years, 11 months ago
CC:
chromium-reviews, jshin+watch_chromium.org, vmpstr+watch_chromium.org, jbroman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow std::unordered_*. base::hash_* is, as a transition step, implemented in terms of std::unordered_*. Later commits will convert existing uses. Also fix a host of IWYU problems that arose from this CL. (NOPRESUBMIT because the wstring presubmit check is overzealous and complains about the reference to wstring in the comment.) NOPRESUBMIT=true BUG=576864 TBR=derat@chromium.org,blundell@chromium.org,jbauman@chromium.org,dalecurtis@chromium.org CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/3f37f7f1459e7b5a452c0e433493e0a6e9649ca7 Cr-Commit-Position: refs/heads/master@{#370553}

Patch Set 1 #

Patch Set 2 : Lots of IWYU violations #

Patch Set 3 : more build fixes #

Patch Set 4 : more IWYU fixes #

Patch Set 5 : more IWYU #

Patch Set 6 : Include. What. You. Use. #

Patch Set 7 : git cl try #

Patch Set 8 : #

Patch Set 9 : What is this __gnu_cxx::vector doing in here #

Patch Set 10 : Cut down on the diff #

Patch Set 11 : #

Total comments: 9

Patch Set 12 : Move and rename HashPair, in which our intrepid adventurer finds ANOTHER IWYU VIOLATION #

Patch Set 13 : danakj comments, adjust IntPairHash silghtly #

Total comments: 7

Patch Set 14 : add bug links #

Patch Set 15 : rebase, more HashPair -> HashInts #

Unified diffs Side-by-side diffs Delta from patch set Stats (+210 lines, -305 lines) Patch
M ash/display/display_info.cc View 1 2 3 4 5 6 1 chunk +4 lines, -1 line 0 comments Download
M base/containers/hash_tables.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +23 lines, -229 lines 0 comments Download
M base/containers/scoped_ptr_hash_map.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +2 lines, -0 lines 0 comments Download
M base/hash.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +81 lines, -0 lines 0 comments Download
M base/location.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -2 lines 0 comments Download
M base/strings/string16.h View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +17 lines, -0 lines 0 comments Download
M base/strings/string16_unittest.cc View 3 chunks +11 lines, -3 lines 0 comments Download
M base/strings/string_piece.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M cc/debug/picture_debug_util.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/delegated_renderer_layer_impl.cc View 1 2 3 4 5 6 1 chunk +0 lines, -9 lines 0 comments Download
M cc/quads/render_pass.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M cc/quads/render_pass_id.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M cc/quads/render_pass_id.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +4 lines, -2 lines 0 comments Download
M cc/surfaces/surface_aggregator.cc View 1 2 3 4 5 6 1 chunk +0 lines, -9 lines 0 comments Download
M cc/surfaces/surface_sequence.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M cc/tiles/image_decode_controller.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/devtools/devtools_file_watcher.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/extensions/api/log_private/filter_handler.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/google/google_brand.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/spellchecker/spellcheck_host_metrics.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/task_management/providers/web_contents/web_contents_tags_manager.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/favicon_base/favicon_util.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/mus/ws/display_manager.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M components/sync_bookmarks/bookmark_model_associator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/gpu/browser_gpu_memory_buffer_manager.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M gpu/command_buffer/service/framebuffer_completeness_cache.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M media/blink/multibuffer.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -9 lines 0 comments Download
M net/base/network_change_notifier_linux.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +1 line, -0 lines 0 comments Download
M net/base/port_util.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index_file.cc View 1 2 3 4 5 6 1 chunk +1 line, -4 lines 0 comments Download
M net/server/web_socket_encoder.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/spdy/spdy_alt_svc_wire_format.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/ssl/client_cert_store_nss.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M net/tools/quic/quic_server_session_base_test.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/quic/quic_simple_server_session_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +0 lines, -1 line 0 comments Download
M styleguide/c++/c++11.html View 1 2 3 4 5 6 7 8 9 10 11 12 4 chunks +22 lines, -22 lines 0 comments Download
M ui/base/x/selection_utils.cc View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/ozone/layout/xkb/xkb_keyboard_layout_engine.cc View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M ui/gfx/generic_shared_memory_id.h View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 38 (13 generated)
brucedawson
The win_chromium_rel_ng try job (https://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/147316) failed due to https://code.google.com/p/chromium/issues/detail?id=567377 - two hour job timeout
5 years ago (2015-12-10 01:21:22 UTC) #2
davidben
This is going to need no end of OWNERS stamps thanks to all the IWYU ...
4 years, 11 months ago (2016-01-14 20:40:41 UTC) #6
danakj
https://codereview.chromium.org/1502373009/diff/200001/base/containers/hash_tables.h File base/containers/hash_tables.h (right): https://codereview.chromium.org/1502373009/diff/200001/base/containers/hash_tables.h#newcode36 base/containers/hash_tables.h:36: return base::HashPair(value.first, value.second); Can make this use PairHash? It ...
4 years, 11 months ago (2016-01-14 21:29:10 UTC) #7
davidben
https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h File base/containers/pair_hash.h (right): https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h#newcode77 base/containers/pair_hash.h:77: inline std::size_t HashPair(T1 value1, T2 value2) { On 2016/01/14 ...
4 years, 11 months ago (2016-01-14 21:34:34 UTC) #8
danakj
https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h File base/containers/pair_hash.h (right): https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h#newcode77 base/containers/pair_hash.h:77: inline std::size_t HashPair(T1 value1, T2 value2) { On 2016/01/14 ...
4 years, 11 months ago (2016-01-14 21:47:12 UTC) #9
danakj
On 2016/01/14 20:40:41, davidben wrote: > This is going to need no end of OWNERS ...
4 years, 11 months ago (2016-01-14 21:48:06 UTC) #10
davidben
https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h File base/containers/pair_hash.h (right): https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h#newcode77 base/containers/pair_hash.h:77: inline std::size_t HashPair(T1 value1, T2 value2) { On 2016/01/14 ...
4 years, 11 months ago (2016-01-15 00:25:42 UTC) #11
danakj
On Thu, Jan 14, 2016 at 4:25 PM, <davidben@chromium.org> wrote: > > > https://codereview.chromium.org/1502373009/diff/200001/base/containers/pair_hash.h > ...
4 years, 11 months ago (2016-01-15 00:35:21 UTC) #12
davidben
Moved stuff to base/hash.h and renamed as discussed. I haven't gotten rid of the old ...
4 years, 11 months ago (2016-01-16 00:22:23 UTC) #13
danakj
https://codereview.chromium.org/1502373009/diff/240001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1502373009/diff/240001/base/containers/scoped_ptr_hash_map.h#newcode21 base/containers/scoped_ptr_hash_map.h:21: // Deprecated: use std::unordered_map instead. Can you link to ...
4 years, 11 months ago (2016-01-19 21:21:55 UTC) #14
danakj
On 2016/01/16 00:22:23, davidben wrote: > Moved stuff to base/hash.h and renamed as discussed. > ...
4 years, 11 months ago (2016-01-19 21:28:24 UTC) #15
davidben
https://codereview.chromium.org/1502373009/diff/240001/base/containers/scoped_ptr_hash_map.h File base/containers/scoped_ptr_hash_map.h (right): https://codereview.chromium.org/1502373009/diff/240001/base/containers/scoped_ptr_hash_map.h#newcode21 base/containers/scoped_ptr_hash_map.h:21: // Deprecated: use std::unordered_map instead. On 2016/01/19 21:21:54, danakj ...
4 years, 11 months ago (2016-01-19 22:30:28 UTC) #16
danakj
base and cc LGTM
4 years, 11 months ago (2016-01-19 22:41:27 UTC) #17
danakj
Oh, and styleguide.
4 years, 11 months ago (2016-01-19 22:41:36 UTC) #18
Nico
lgtm 2 Thanks much for doing this :-)
4 years, 11 months ago (2016-01-19 23:37:53 UTC) #19
davidben
Adding a number of OWNERS for TBR. It's all just IWYU violations that this CL ...
4 years, 11 months ago (2016-01-20 19:20:56 UTC) #22
DaleCurtis
media/ lgtm thanks!
4 years, 11 months ago (2016-01-20 19:22:33 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502373009/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502373009/260001
4 years, 11 months ago (2016-01-20 19:23:34 UTC) #25
Daniel Erat
lgtm for ash/
4 years, 11 months ago (2016-01-20 19:33:30 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/137307)
4 years, 11 months ago (2016-01-20 19:48:28 UTC) #28
davidben
On 2016/01/20 19:48:28, commit-bot: I haz the power wrote: > Try jobs failed on following ...
4 years, 11 months ago (2016-01-20 21:17:09 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1502373009/280001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1502373009/280001
4 years, 11 months ago (2016-01-20 23:17:55 UTC) #33
commit-bot: I haz the power
Committed patchset #15 (id:280001)
4 years, 11 months ago (2016-01-21 01:08:47 UTC) #35
commit-bot: I haz the power
Patchset 15 (id:??) landed as https://crrev.com/3f37f7f1459e7b5a452c0e433493e0a6e9649ca7 Cr-Commit-Position: refs/heads/master@{#370553}
4 years, 11 months ago (2016-01-21 01:10:19 UTC) #37
davidben
4 years, 11 months ago (2016-01-21 01:35:32 UTC) #38
Message was sent while issue was closed.
A revert of this CL (patchset #15 id:280001) has been created in
https://codereview.chromium.org/1610023003/ by davidben@chromium.org.

The reason for reverting is: MSan build failure.

https://build.chromium.org/p/chromium.memory.fyi/builders/Chromium%20Linux%20....

Powered by Google App Engine
This is Rietveld 408576698