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

Issue 1122483004: Remove NetLog::GetCaptureMode() and NetLogCaptureMode::None() (Closed)

Created:
5 years, 7 months ago by eroman
Modified:
5 years, 7 months ago
Reviewers:
asanka, mmenke
CC:
chromium-reviews, asanka, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, benjhayden+dwatch_chromium.org, jam, eroman, darin-cc_chromium.org, mmenke
Base URL:
https://chromium.googlesource.com/chromium/src.git@mmenke_refactor
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove NetLog::GetCaptureMode() and NetLogCaptureMode::None() * In place of GetCaptureMode() use NetLog::IsCapturing(). * NetLogCaptureMode::None() is no longer needed now. This clears up some confusion since there are no longer multiple sources of truth for what the capture mode is (per observer vs per log). The removal of NetLogCaptureMode::None() similarly removes confusion over being able to add an observer with a capture mode of None. BUG=484762 TBR=asanka@chromium.org Committed: https://crrev.com/24bc6a1df2048ee8feeb1d837cdfddd2e9d0cde1 Cr-Commit-Position: refs/heads/master@{#328589}

Patch Set 1 #

Total comments: 6

Patch Set 2 : rebase #

Patch Set 3 : Remove NetLogCaptureMode::None #

Patch Set 4 : rebase onto master #

Patch Set 5 : rename HasObservers --> IsCapturing #

Total comments: 10

Patch Set 6 : Address mmenke's comments #

Patch Set 7 : Add explicit casts bool <--> int to appease windows compiler #

Patch Set 8 : second attempt at fixing int --> bool warning on windows #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -245 lines) Patch
M chrome/browser/net/net_log_temp_file_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M content/browser/download/download_file_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M content/browser/download/download_item_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/disk_cache/blockfile/entry_impl.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M net/disk_cache/blockfile/entry_impl_v3.cc View 1 2 3 4 4 chunks +4 lines, -4 lines 0 comments Download
M net/disk_cache/blockfile/sparse_control.cc View 1 2 3 4 6 chunks +7 lines, -9 lines 0 comments Download
M net/disk_cache/blockfile/sparse_control_v3.cc View 1 2 3 4 5 chunks +5 lines, -5 lines 0 comments Download
M net/disk_cache/memory/mem_entry_impl.cc View 1 2 3 4 9 chunks +14 lines, -14 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 15 chunks +15 lines, -15 lines 0 comments Download
M net/http/http_cache_transaction.cc View 1 2 3 4 11 chunks +12 lines, -12 lines 0 comments Download
M net/http/http_network_transaction_unittest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/log/net_log.h View 1 2 3 4 4 chunks +12 lines, -11 lines 0 comments Download
M net/log/net_log.cc View 1 2 3 4 5 6 7 5 chunks +11 lines, -35 lines 0 comments Download
M net/log/net_log_capture_mode.h View 1 2 2 chunks +2 lines, -26 lines 0 comments Download
M net/log/net_log_capture_mode.cc View 1 2 4 chunks +2 lines, -27 lines 0 comments Download
M net/log/net_log_capture_mode_unittest.cc View 1 2 4 chunks +2 lines, -35 lines 0 comments Download
M net/log/net_log_unittest.cc View 1 2 3 4 5 9 chunks +11 lines, -13 lines 0 comments Download
M net/log/net_log_util.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M net/log/write_to_file_net_log_observer_unittest.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M net/proxy/proxy_service.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/socket/transport_client_socket_pool.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/spdy/spdy_session.cc View 1 2 3 4 9 chunks +9 lines, -9 lines 0 comments Download
M net/udp/udp_socket_libevent.cc View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M net/udp/udp_socket_win.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M net/url_request/url_request.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M net/url_request/url_request_job.cc View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
eroman
5 years, 7 months ago (2015-05-05 19:13:11 UTC) #2
mmenke
Quick comments. Unsure if I'll have time for a full pass today. Like that we're ...
5 years, 7 months ago (2015-05-05 19:45:15 UTC) #3
eroman
https://codereview.chromium.org/1122483004/diff/1/net/log/net_log.cc File net/log/net_log.cc (right): https://codereview.chromium.org/1122483004/diff/1/net/log/net_log.cc#newcode258 net/log/net_log.cc:258: observer->capture_mode_ = capture_mode; On 2015/05/05 19:45:15, mmenke wrote: > ...
5 years, 7 months ago (2015-05-05 22:54:38 UTC) #4
mmenke
Looks good! Good call on getting rid of None(). https://codereview.chromium.org/1122483004/diff/80001/chrome/browser/net/net_log_temp_file_unittest.cc File chrome/browser/net/net_log_temp_file_unittest.cc (right): https://codereview.chromium.org/1122483004/diff/80001/chrome/browser/net/net_log_temp_file_unittest.cc#newcode201 chrome/browser/net/net_log_temp_file_unittest.cc:201: ...
5 years, 7 months ago (2015-05-06 15:14:42 UTC) #5
eroman
https://codereview.chromium.org/1122483004/diff/80001/chrome/browser/net/net_log_temp_file_unittest.cc File chrome/browser/net/net_log_temp_file_unittest.cc (right): https://codereview.chromium.org/1122483004/diff/80001/chrome/browser/net/net_log_temp_file_unittest.cc#newcode201 chrome/browser/net/net_log_temp_file_unittest.cc:201: On 2015/05/06 15:14:41, mmenke wrote: > Since you removed ...
5 years, 7 months ago (2015-05-06 17:01:05 UTC) #6
mmenke
LGTM
5 years, 7 months ago (2015-05-06 17:07:09 UTC) #7
eroman
TBR asanka for: content/browser/download/download_file_impl.cc content/browser/download/download_item_impl.cc
5 years, 7 months ago (2015-05-06 17:22:35 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1122483004/100001
5 years, 7 months ago (2015-05-06 17:28:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1122483004/120001
5 years, 7 months ago (2015-05-06 17:39:18 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: win8_chromium_rel on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_rel/builds/80907)
5 years, 7 months ago (2015-05-06 18:27:07 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1122483004/140001
5 years, 7 months ago (2015-05-06 18:42:34 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:140001)
5 years, 7 months ago (2015-05-06 19:56:14 UTC) #21
commit-bot: I haz the power
5 years, 7 months ago (2015-05-06 19:57:07 UTC) #22
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/24bc6a1df2048ee8feeb1d837cdfddd2e9d0cde1
Cr-Commit-Position: refs/heads/master@{#328589}

Powered by Google App Engine
This is Rietveld 408576698