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

Issue 587453005: Cleanup: Remove some std::map::operator[] usage in ApiResourceManager. (Closed)

Created:
6 years, 3 months ago by Lei Zhang
Modified:
6 years, 3 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Cleanup: Remove some std::map::operator[] usage in ApiResourceManager. Also remove an unused header and add it where actually used. Committed: https://crrev.com/f75586adc8cbec278d71b9177b5c91c91146d200 Cr-Commit-Position: refs/heads/master@{#295789}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -18 lines) Patch
M extensions/browser/api/api_resource_manager.h View 5 chunks +18 lines, -18 lines 2 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_connection.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth_low_energy/bluetooth_low_energy_notify_session.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/bluetooth_socket/bluetooth_api_socket.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/bluetooth_socket/bluetooth_socket_event_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/cast_channel/cast_channel_api.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/serial/serial_event_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/socket/tcp_socket.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/socket/udp_socket.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/sockets_tcp/tcp_socket_event_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/sockets_tcp_server/tcp_server_socket_event_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/sockets_udp/udp_socket_event_dispatcher.cc View 1 chunk +1 line, -0 lines 0 comments Download
M extensions/browser/api/usb/usb_device_resource.cc View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 7 (2 generated)
Lei Zhang
https://codereview.chromium.org/587453005/diff/1/extensions/browser/api/api_resource_manager.h File extensions/browser/api/api_resource_manager.h (left): https://codereview.chromium.org/587453005/diff/1/extensions/browser/api/api_resource_manager.h#oldcode247 extensions/browser/api/api_resource_manager.h:247: DCHECK(extension_resource_map_.find(extension_id) != std::map::operator[] has the side effect of creating ...
6 years, 3 months ago (2014-09-19 05:53:06 UTC) #2
Ken Rockot(use gerrit already)
lgtm and thanks for the header changes as well https://codereview.chromium.org/587453005/diff/1/extensions/browser/api/api_resource_manager.h File extensions/browser/api/api_resource_manager.h (left): https://codereview.chromium.org/587453005/diff/1/extensions/browser/api/api_resource_manager.h#oldcode247 extensions/browser/api/api_resource_manager.h:247: ...
6 years, 3 months ago (2014-09-19 16:37:06 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/587453005/1
6 years, 3 months ago (2014-09-19 18:25:49 UTC) #5
commit-bot: I haz the power
Committed patchset #1 (id:1) as 8f2a4f74b9d240dc2116ba94fe98a8698fc935db
6 years, 3 months ago (2014-09-19 22:01:43 UTC) #6
commit-bot: I haz the power
6 years, 3 months ago (2014-09-19 22:02:17 UTC) #7
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/f75586adc8cbec278d71b9177b5c91c91146d200
Cr-Commit-Position: refs/heads/master@{#295789}

Powered by Google App Engine
This is Rietveld 408576698