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

Issue 2829163004: Remove uses of base::hash_map from //chrome (Closed)

Created:
3 years, 8 months ago by brettw
Modified:
3 years, 5 months ago
Reviewers:
chrisha
CC:
chromium-reviews, cbentzel+watch_chromium.org, alemate+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, achuith+watch_chromium.org, net-reviews_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove uses of base::hash_map from //chrome In cases where it seemed like there might be a high query volume or I had no way of knowing, it is replaced with a std::unordered_map (which base::hash_map is a typedef for already). In cases where I understood the workload and it was appropriate, base::flat_map is used. In a few places that were create-once-then-read-only, the flat_map optimized construction from a vector is used. In all other cases, std::map is used. Review-Url: https://codereview.chromium.org/2829163004 Cr-Commit-Position: refs/heads/master@{#483431} Committed: https://chromium.googlesource.com/chromium/src/+/84cff3faf4bd3ae60fcb70b0e2c526c08709be5e

Patch Set 1 #

Patch Set 2 : map not set #

Patch Set 3 : . #

Patch Set 4 : . #

Patch Set 5 : Fixes #

Patch Set 6 : Fixes #

Patch Set 7 : Merge #

Patch Set 8 : Fixes #

Total comments: 11

Patch Set 9 : Merge remote-tracking branch 'origin/master' into chrome_hash #

Patch Set 10 : Comments, no downloads. #

Patch Set 11 : Downloads back #

Unified diffs Side-by-side diffs Delta from patch set Stats (+238 lines, -207 lines) Patch
M chrome/browser/android/compositor/tab_content_manager.h View 1 2 chunks +7 lines, -5 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_tab_model.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/data_usage/data_use_ui_tab_model.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/android/data_usage/external_data_use_reporter.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/android/history_report/data_provider.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/android/thumbnail/thumbnail_cache.h View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/login/users/chrome_user_manager_impl.h View 1 2 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/chromeos/login/wizard_controller.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_impl.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/net/network_portal_detector_test_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/settings/cros_settings.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/command_updater.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/data_use_measurement/chrome_data_use_ascriber.h View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -15 lines 0 comments Download
M chrome/browser/download/chrome_download_manager_delegate.h View 1 2 3 4 5 6 7 8 9 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/browser/engagement/important_sites_util.cc View 1 2 3 4 5 6 6 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +60 lines, -39 lines 0 comments Download
M chrome/browser/extensions/api/downloads/downloads_api_browsertest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/font_family_cache.h View 1 2 3 4 5 6 7 8 9 4 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/font_family_cache.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -5 lines 0 comments Download
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media/router/discovery/dial/dial_registry.h View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/media_galleries/fileapi/media_path_filter.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M chrome/browser/media_galleries/mac/mtp_device_delegate_impl_mac.mm View 1 1 chunk +1 line, -3 lines 0 comments Download
M chrome/browser/net/predictor_browsertest.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/pdf/pdf_extension_test.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/resource_coordinator/tab_manager_delegate_chromeos.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources_util.cc View 1 2 3 2 chunks +22 lines, -13 lines 0 comments Download
M chrome/browser/safe_browsing/local_database_manager.h View 1 2 3 4 5 6 7 8 9 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/safe_browsing/protocol_manager.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_blocking_page_test.cc View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/safe_browsing/safe_browsing_service_browsertest.cc View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/threat_details_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/site_details.h View 1 2 3 4 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_index.h View 1 4 chunks +8 lines, -8 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/metadata_database_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/sync_file_system/drive_backend/sync_worker.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/sync_file_system/subtree_set.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M chrome/renderer/extensions/automation_internal_custom_bindings.h View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -2 lines 0 comments Download
M chrome/renderer/safe_browsing/features.h View 1 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_classifier.cc View 1 2 3 4 5 6 7 8 9 1 chunk +7 lines, -10 lines 0 comments Download
M chrome/renderer/safe_browsing/phishing_dom_feature_extractor_browsertest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +6 lines, -4 lines 0 comments Download
M chrome/renderer/safe_browsing/scorer.cc View 1 2 2 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/tts_dispatcher.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/tts_dispatcher.cc View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M ui/base/ime/chromeos/input_method_util.h View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/ime/chromeos/input_method_util.cc View 1 2 3 4 5 6 7 8 9 2 chunks +15 lines, -5 lines 0 comments Download

Messages

Total messages: 47 (32 generated)
brettw
.
3 years, 7 months ago (2017-05-12 21:26:01 UTC) #1
brettw
3 years, 7 months ago (2017-05-12 21:55:02 UTC) #4
brettw
Fixes
3 years, 7 months ago (2017-05-15 21:20:29 UTC) #9
brettw
Fixes
3 years, 7 months ago (2017-05-15 22:52:02 UTC) #14
brettw
Merge
3 years, 7 months ago (2017-05-22 22:04:47 UTC) #19
brettw
Fixes
3 years, 7 months ago (2017-05-22 23:07:12 UTC) #24
brettw
3 years, 7 months ago (2017-05-23 17:06:40 UTC) #30
chrisha
https://codereview.chromium.org/2829163004/diff/140001/chrome/browser/chromeos/input_method/input_method_util.cc File chrome/browser/chromeos/input_method/input_method_util.cc (right): https://codereview.chromium.org/2829163004/diff/140001/chrome/browser/chromeos/input_method/input_method_util.cc#newcode389 chrome/browser/chromeos/input_method/input_method_util.cc:389: map_entry.resource_id); nit: Instead of dynamically creating a const flat_map ...
3 years, 7 months ago (2017-05-23 20:08:00 UTC) #31
brettw
Comments, no downloads.
3 years, 5 months ago (2017-06-28 23:56:46 UTC) #32
brettw
https://codereview.chromium.org/2829163004/diff/140001/chrome/browser/chromeos/input_method/input_method_util.cc File chrome/browser/chromeos/input_method/input_method_util.cc (right): https://codereview.chromium.org/2829163004/diff/140001/chrome/browser/chromeos/input_method/input_method_util.cc#newcode389 chrome/browser/chromeos/input_method/input_method_util.cc:389: map_entry.resource_id); On 2017/05/23 20:07:59, chrisha wrote: > nit: Instead ...
3 years, 5 months ago (2017-06-28 23:58:39 UTC) #34
brettw
Downloads back
3 years, 5 months ago (2017-06-29 00:13:09 UTC) #36
brettw
I've abandoned the downloads refactor requested and put it back the way I had it. ...
3 years, 5 months ago (2017-06-29 00:13:20 UTC) #37
chrisha
lgtm!
3 years, 5 months ago (2017-06-29 17:44:14 UTC) #42
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/2829163004/200001
3 years, 5 months ago (2017-06-29 18:21:07 UTC) #44
commit-bot: I haz the power
3 years, 5 months ago (2017-06-29 18:27:06 UTC) #47
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://chromium.googlesource.com/chromium/src/+/84cff3faf4bd3ae60fcb70b0e2c5...

Powered by Google App Engine
This is Rietveld 408576698