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

Issue 1869503003: Convert //net and //chromecast to std::unordered_* (Closed)

Created:
4 years, 8 months ago by davidben
Modified:
3 years, 11 months ago
Reviewers:
lcwu1, mmenke
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Convert //net and //chromecast to std::unordered_* Do //chromecast at the same time as //net since there aren't many uses in //chromecast and one needs to be changed to mirror a //net API change. BUG=576864, 554287 Committed: https://crrev.com/4241ad1dee5396c329a5e9379c3db3027f1b6456 Cr-Commit-Position: refs/heads/master@{#386485}

Patch Set 1 #

Total comments: 2

Patch Set 2 : fix windows #

Patch Set 3 : fix cast build #

Patch Set 4 : rebase #

Patch Set 5 : fix cast #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -191 lines) Patch
M chromecast/base/device_capabilities_impl.h View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M chromecast/base/device_capabilities_impl.cc View 1 2 3 4 1 chunk +2 lines, -4 lines 2 comments Download
M chromecast/common/cast_resource_delegate.h View 1 2 3 2 chunks +2 lines, -1 line 0 comments Download
M chromecast/net/net_util_cast.h View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chromecast/net/net_util_cast.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M net/android/network_change_notifier_android.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/base/address_tracker_linux.h View 4 chunks +9 lines, -8 lines 0 comments Download
M net/base/address_tracker_linux.cc View 3 chunks +5 lines, -5 lines 0 comments Download
M net/base/address_tracker_linux_unittest.cc View 3 chunks +3 lines, -2 lines 0 comments Download
M net/base/mime_util.cc View 6 chunks +9 lines, -8 lines 0 comments Download
M net/base/network_change_notifier.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/base/network_change_notifier_linux.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/base/network_change_notifier_linux.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M net/base/network_interfaces_linux.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/network_interfaces_linux.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M net/base/network_interfaces_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M net/base/platform_mime_util.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/base/platform_mime_util_linux.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/platform_mime_util_mac.mm View 1 chunk +1 line, -1 line 0 comments Download
M net/base/platform_mime_util_win.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/base/priority_queue.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/crl_set.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/cert/crl_set.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/blockfile/backend_impl.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/disk_cache/blockfile/backend_impl_v3.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/disk_cache/blockfile/backend_worker_v3.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/disk_cache/memory/mem_backend_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/memory/mem_entry_impl.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 3 chunks +6 lines, -5 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 6 chunks +6 lines, -6 lines 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 3 chunks +4 lines, -3 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_index_file.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/dns/dns_hosts.h View 2 chunks +6 lines, -18 lines 0 comments Download
M net/http/http_cache.h View 2 chunks +5 lines, -5 lines 0 comments Download
M net/http/http_response_headers.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/http_response_headers.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/http/http_server_properties_impl_unittest.cc View 1 chunk +0 lines, -1 line 0 comments Download
M net/http/http_transaction_test_util.cc View 2 chunks +3 lines, -1 line 0 comments Download
M net/http/mock_http_cache.h View 2 chunks +3 lines, -2 lines 0 comments Download
M net/spdy/http2_write_scheduler.h View 1 chunk +0 lines, -1 line 0 comments Download
M net/spdy/write_blocked_list.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/balsa/balsa_headers.cc View 2 chunks +6 lines, -9 lines 0 comments Download
M net/tools/balsa/string_piece_utils.h View 1 2 chunks +0 lines, -43 lines 0 comments Download
M net/tools/epoll_server/epoll_server.h View 5 chunks +5 lines, -4 lines 0 comments Download
M net/tools/net_watcher/net_watcher.cc View 2 chunks +2 lines, -1 line 0 comments Download
M net/tools/quic/quic_dispatcher.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/quic/quic_in_memory_cache.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/quic/quic_server_session_base.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/quic/quic_simple_server_session.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M net/tools/quic/test_tools/mock_epoll_server.h View 3 chunks +5 lines, -2 lines 0 comments Download
M net/url_request/url_request_filter.h View 2 chunks +2 lines, -3 lines 0 comments Download
M net/url_request/url_request_filter.cc View 3 chunks +4 lines, -5 lines 0 comments Download
M net/websockets/websocket_basic_handshake_stream.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 28 (13 generated)
davidben
4 years, 8 months ago (2016-04-06 19:18:40 UTC) #2
mmenke
LGTM https://codereview.chromium.org/1869503003/diff/1/net/base/network_change_notifier_linux.cc File net/base/network_change_notifier_linux.cc (right): https://codereview.chromium.org/1869503003/diff/1/net/base/network_change_notifier_linux.cc#newcode7 net/base/network_change_notifier_linux.cc:7: #include <unordered_set> nit: Already included in the header
4 years, 8 months ago (2016-04-06 21:02:22 UTC) #3
davidben
+lcwu for //chromecast. https://codereview.chromium.org/1869503003/diff/1/net/base/network_change_notifier_linux.cc File net/base/network_change_notifier_linux.cc (right): https://codereview.chromium.org/1869503003/diff/1/net/base/network_change_notifier_linux.cc#newcode7 net/base/network_change_notifier_linux.cc:7: #include <unordered_set> On 2016/04/06 21:02:22, mmenke ...
4 years, 8 months ago (2016-04-07 21:30:41 UTC) #6
lcwu1
chromecast/ lgtm
4 years, 8 months ago (2016-04-08 04:57:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503003/40001
4 years, 8 months ago (2016-04-08 05:37:11 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_ng/builds/207913)
4 years, 8 months ago (2016-04-08 05:41:14 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503003/60001
4 years, 8 months ago (2016-04-11 17:16:47 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/142765)
4 years, 8 months ago (2016-04-11 17:36:37 UTC) #17
davidben
lcwu: PTAL. I had to tweak the chromecast bit very slightly. https://codereview.chromium.org/1869503003/diff/80001/chromecast/base/device_capabilities_impl.cc File chromecast/base/device_capabilities_impl.cc (right): ...
4 years, 8 months ago (2016-04-11 19:27:58 UTC) #18
lcwu1
https://codereview.chromium.org/1869503003/diff/80001/chromecast/base/device_capabilities_impl.cc File chromecast/base/device_capabilities_impl.cc (right): https://codereview.chromium.org/1869503003/diff/80001/chromecast/base/device_capabilities_impl.cc#newcode154 chromecast/base/device_capabilities_impl.cc:154: validator_map_[key] = base::WrapUnique(new ValidatorInfo(validator)); On 2016/04/11 19:27:58, davidben (OOO ...
4 years, 8 months ago (2016-04-11 21:43:04 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1869503003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1869503003/80001
4 years, 8 months ago (2016-04-11 21:44:52 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 8 months ago (2016-04-11 22:00:08 UTC) #24
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/4241ad1dee5396c329a5e9379c3db3027f1b6456 Cr-Commit-Position: refs/heads/master@{#386485}
4 years, 8 months ago (2016-04-11 22:02:07 UTC) #26
kjellander_chromium
A revert of this CL (patchset #5 id:80001) has been created in https://codereview.chromium.org/1884453002/ by kjellander@chromium.org. ...
4 years, 8 months ago (2016-04-12 08:14:16 UTC) #27
davidben
4 years, 8 months ago (2016-04-18 19:52:41 UTC) #28
Message was sent while issue was closed.
On 2016/04/12 08:14:16, kjellander (chromium) wrote:
> A revert of this CL (patchset #5 id:80001) has been created in
> https://codereview.chromium.org/1884453002/ by mailto:kjellander@chromium.org.
> 
> The reason for reverting is: Speculatively reverting this since it was in the
> blamelist
>
https://chromium.googlesource.com/chromium/src/+log/39399be2c6a0063520d8d9b28...
> that I came up with after analyzing the content_browsertests failures
> (DownloadContentTest) on 
>
https://build.chromium.org/p/chromium.linux/builders/Linux%20Tests%20%28dbg%2...
> and
>
https://build.chromium.org/p/chromium.memory/builders/Linux%20Chromium%20OS%2....

Bleh. I see the problem.

void TestDownloadRequestHandler::Interceptor::Unregister() {
  net::URLRequestFilter* filter = net::URLRequestFilter::GetInstance();
  filter->RemoveUrlHandler(url_);
  // We are deleted now since the filter owned |this|.
}

RemoveUrlHandler deletes |this|, so we can't pass in |url_|.

Powered by Google App Engine
This is Rietveld 408576698