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

Issue 763833003: Remove using namespace in net/quic/quic_stream_sequencer.h (Closed)

Created:
6 years ago by haltonhuo
Modified:
6 years ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, wfh+watch_chromium.org, jam, dcheng, dsinclair+watch_chromium.org, darin-cc_chromium.org, cmumford, jsbell+idb_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Remove using namespace in net/quic/quic_stream_sequencer.h Using namespace in a header file is very dangerous since then by including that header in another file I will get the namespace imported into that file as well, so remove that usage and modify related files. BUG=None TEST=build all target Committed: https://crrev.com/e4e4574043067c1f92bbf64b0c27e33c72d23be8 Cr-Commit-Position: refs/heads/master@{#307211}

Patch Set 1 #

Total comments: 3

Patch Set 2 : resolve ramant's comment, using std:: for .cc #

Total comments: 4

Patch Set 3 : Remove redundant include <string> #

Total comments: 2

Patch Set 4 : Fix kinaba's comment in google_apis #

Patch Set 5 : fix missing part device_cloud_policy_manager_chromeos_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+103 lines, -52 lines) Patch
M chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/component_updater/test/component_updater_service_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/io_thread.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/net/network_stats_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/component_updater/test/component_updater_ping_manager_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/component_updater/test/update_checker_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M components/suggestions/suggestions_service_unittest.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M content/browser/indexed_db/indexed_db_backing_store.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/loader/resource_scheduler_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/tracing/trace_uploader.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M google_apis/drive/drive_api_requests_unittest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/http/disk_cache_based_quic_server_info_unittest.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/congestion_control/send_algorithm_simulator.h View 1 2 3 3 chunks +6 lines, -4 lines 0 comments Download
M net/quic/congestion_control/send_algorithm_simulator.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_decrypter_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/aes_128_gcm_12_encrypter_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_decrypter_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/chacha20_poly1305_encrypter_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/crypto/crypto_utils_test.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_connection_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_crypto_client_stream.h View 2 chunks +2 lines, -2 lines 0 comments Download
M net/quic/quic_crypto_client_stream.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_crypto_client_stream_test.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_crypto_server_stream.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_crypto_server_stream_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_data_stream.h View 2 chunks +2 lines, -1 line 0 comments Download
M net/quic/quic_data_stream_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_headers_stream.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_reliable_client_stream_test.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_server_session.h View 3 chunks +3 lines, -2 lines 0 comments Download
M net/quic/quic_session.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_session.cc View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/quic_session_test.cc View 1 2 2 chunks +1 line, -1 line 0 comments Download
M net/quic/quic_spdy_server_stream.h View 1 chunk +1 line, -1 line 0 comments Download
M net/quic/quic_stream_factory.cc View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M net/quic/quic_stream_sequencer.h View 1 2 2 chunks +2 lines, -4 lines 0 comments Download
M net/quic/quic_stream_sequencer.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/quic_stream_sequencer_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/reliable_quic_stream.h View 1 2 3 3 chunks +4 lines, -3 lines 0 comments Download
M net/quic/reliable_quic_stream.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/reliable_quic_stream_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/quic/test_tools/mock_crypto_client_stream.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_session_peer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_session_peer.cc View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M net/quic/test_tools/quic_test_utils.h View 1 2 3 1 chunk +8 lines, -7 lines 0 comments Download
M net/tools/quic/quic_client.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M net/tools/quic/quic_dispatcher_test.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/quic_server_session.h View 3 chunks +3 lines, -2 lines 0 comments Download
M net/tools/quic/quic_server_session_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/quic_spdy_client_stream_test.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M net/tools/quic/quic_spdy_server_stream.h View 1 chunk +1 line, -1 line 0 comments Download
M net/tools/quic/test_tools/packet_dropping_test_writer.h View 2 chunks +2 lines, -1 line 0 comments Download
M net/tools/quic/test_tools/quic_test_client.h View 1 2 3 5 chunks +11 lines, -11 lines 0 comments Download
M net/url_request/url_request_unittest.cc View 1 2 3 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 51 (18 generated)
haltonhuo
This CL need work together with https://codereview.appspot.com/183860043/, please review.
6 years ago (2014-11-28 08:55:31 UTC) #1
haltonhuo
rtenneti, could you review this CL?
6 years ago (2014-12-02 03:41:29 UTC) #3
ramant (doing other things)
https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc File net/quic/congestion_control/send_algorithm_simulator.cc (right): https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc#newcode51 net/quic/congestion_control/send_algorithm_simulator.cc:51: std::string name) We share net/quic and net/tools/quic code with ...
6 years ago (2014-12-02 04:14:43 UTC) #6
haltonhuo
https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc File net/quic/congestion_control/send_algorithm_simulator.cc (right): https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc#newcode51 net/quic/congestion_control/send_algorithm_simulator.cc:51: std::string name) On 2014/12/02 04:14:43, ramant wrote: > We ...
6 years ago (2014-12-02 04:57:07 UTC) #7
ramant (doing other things)
https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc File net/quic/congestion_control/send_algorithm_simulator.cc (right): https://codereview.chromium.org/763833003/diff/1/net/quic/congestion_control/send_algorithm_simulator.cc#newcode51 net/quic/congestion_control/send_algorithm_simulator.cc:51: std::string name) On 2014/12/02 04:57:07, haltonhuo wrote: > On ...
6 years ago (2014-12-03 01:10:09 UTC) #8
haltonhuo
ramant, I removed the redundant include <string> in patch set3. And remove/add some include in ...
6 years ago (2014-12-03 02:49:05 UTC) #9
haltonhuo
On 2014/12/03 02:49:05, haltonhuo wrote: > ramant, I removed the redundant include <string> in patch ...
6 years ago (2014-12-03 06:56:49 UTC) #10
ramant (doing other things)
LGTM for net/quic and net/tools/quic. Thanks for making these changes.
6 years ago (2014-12-03 19:54:51 UTC) #11
haltonhuo
Ramant, thanks for the review for net. Add sky for changes in chrome/ Add cpu ...
6 years ago (2014-12-04 01:31:53 UTC) #13
kinaba
https://codereview.chromium.org/763833003/diff/40001/google_apis/drive/drive_api_requests_unittest.cc File google_apis/drive/drive_api_requests_unittest.cc (right): https://codereview.chromium.org/763833003/diff/40001/google_apis/drive/drive_api_requests_unittest.cc#newcode26 google_apis/drive/drive_api_requests_unittest.cc:26: using std::string; The uses of unqualified 'string' are not ...
6 years ago (2014-12-04 02:04:01 UTC) #14
haltonhuo
https://codereview.chromium.org/763833003/diff/40001/google_apis/drive/drive_api_requests_unittest.cc File google_apis/drive/drive_api_requests_unittest.cc (right): https://codereview.chromium.org/763833003/diff/40001/google_apis/drive/drive_api_requests_unittest.cc#newcode26 google_apis/drive/drive_api_requests_unittest.cc:26: using std::string; On 2014/12/04 02:04:01, kinaba wrote: > The ...
6 years ago (2014-12-04 02:14:32 UTC) #15
sky
chrome/ LGTM
6 years ago (2014-12-04 04:27:45 UTC) #16
jam
lgtm
6 years ago (2014-12-04 17:40:34 UTC) #17
cpu_(ooo_6.6-7.5)
lgtm
6 years ago (2014-12-04 23:57:40 UTC) #18
haltonhuo
kinaba, the patch set 4 is updated to fix your comment on google_apis/drive. please take ...
6 years ago (2014-12-05 01:50:59 UTC) #19
kinaba
lgtm
6 years ago (2014-12-05 02:04:11 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-05 02:07:33 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_dbg/builds/23309)
6 years ago (2014-12-05 02:34:18 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-05 02:59:57 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/4848)
6 years ago (2014-12-05 03:38:42 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-05 04:37:17 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/4863)
6 years ago (2014-12-05 05:14:16 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-05 05:56:33 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/4873)
6 years ago (2014-12-05 06:34:06 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-05 09:47:38 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-06 15:37:31 UTC) #41
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/5280)
6 years ago (2014-12-06 16:14:57 UTC) #43
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/60001
6 years ago (2014-12-08 06:41:13 UTC) #45
kinaba
@haltonhuo, the failure looks real. You need some more changes. ../../chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:201:3:error: unknown type name 'string'; ...
6 years ago (2014-12-08 06:46:40 UTC) #46
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/763833003/80001
6 years ago (2014-12-08 06:58:38 UTC) #48
commit-bot: I haz the power
Committed patchset #5 (id:80001)
6 years ago (2014-12-08 07:55:54 UTC) #49
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/e4e4574043067c1f92bbf64b0c27e33c72d23be8 Cr-Commit-Position: refs/heads/master@{#307211}
6 years ago (2014-12-08 07:56:32 UTC) #50
haltonhuo
6 years ago (2014-12-08 07:58:43 UTC) #51
Message was sent while issue was closed.
On 2014/12/08 06:46:40, kinaba wrote:
> @haltonhuo, the failure looks real. You need some more changes.
> 
>
../../chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc:201:3:error:
> unknown type name 'string'; did you mean 'std::string'?
>   string url_fetcher_response_string_;
>   ^~~~~~
>   std::string

Kinaba, thanks for pointing me out. I was mis-leading by the step error "running
steps via annotated script". Now it finally landed.

Powered by Google App Engine
This is Rietveld 408576698