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

Issue 2465303002: [cronet] make startNetLogToFile write to correct file (Closed)

Created:
4 years, 1 month ago by lilyhoughton1
Modified:
3 years, 11 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, mac-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

make startNetLogToFile generate full path before passing to C++ function additionally, this adds a couple lines to the C++ backend so that it branches on whether the input file is relative or absolute, and leaves absolute paths unchanged BUG=616918 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester Review-Url: https://codereview.chromium.org/2465303002 Cr-Commit-Position: refs/heads/master@{#442314} Committed: https://chromium.googlesource.com/chromium/src/+/214b3a27cc09cc76ba9b24a2eac7e41478cda770

Patch Set 1 #

Total comments: 25

Patch Set 2 : per mef's comments #

Patch Set 3 : fix kapishnikov nits #

Total comments: 12

Patch Set 4 : cl format #

Patch Set 5 : test to see that netlog successfully creates the file its trying to #

Patch Set 6 : Sync #

Total comments: 16

Patch Set 7 : per #15 #

Total comments: 9

Patch Set 8 : remove unused includes #

Patch Set 9 : sync #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -44 lines) Patch
M components/cronet/ios/Cronet.h View 1 2 3 4 5 6 7 8 1 chunk +10 lines, -6 lines 0 comments Download
M components/cronet/ios/Cronet.mm View 1 2 3 4 5 6 7 1 chunk +14 lines, -3 lines 0 comments Download
M components/cronet/ios/cronet_environment.h View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -3 lines 0 comments Download
M components/cronet/ios/cronet_environment.mm View 1 2 3 4 5 6 7 8 4 chunks +34 lines, -32 lines 0 comments Download
M components/cronet/ios/test/BUILD.gn View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
A components/cronet/ios/test/cronet_netlog_test.mm View 1 2 3 4 5 6 7 1 chunk +94 lines, -0 lines 0 comments Download

Messages

Total messages: 35 (15 generated)
lilyhoughton
4 years, 1 month ago (2016-11-10 16:46:45 UTC) #4
mef
Looks good, couple of quick comments. Also, please update description. https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h#newcode81 ...
4 years, 1 month ago (2016-11-10 17:09:49 UTC) #5
kapishnikov
Here are some suggestions. https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h#newcode77 components/cronet/ios/Cronet.h:77: // temporary directory. |fileName| must ...
4 years, 1 month ago (2016-11-10 20:52:17 UTC) #6
lilyhoughton
https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h#newcode77 components/cronet/ios/Cronet.h:77: // temporary directory. |fileName| must not be empty. Log ...
4 years, 1 month ago (2016-11-16 16:04:10 UTC) #9
mef
https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/cronet_environment.h File components/cronet/ios/cronet_environment.h (right): https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/cronet_environment.h#newcode114 components/cronet/ios/cronet_environment.h:114: void StartNetLogOnNetworkThread(base::ScopedFILE file, bool log_bytes); Add #include "base/files/scoped_file.h". https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/test/cronet_netlog_test.mm ...
4 years, 1 month ago (2016-11-17 15:58:48 UTC) #10
kapishnikov
Here are some extra comments. https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/1/components/cronet/ios/Cronet.h#newcode81 components/cronet/ios/Cronet.h:81: + (bool)startNetLogToFile:(NSString*)fileName logBytes:(BOOL)logBytes; On ...
4 years, 1 month ago (2016-11-18 22:17:27 UTC) #11
lilyhoughton
fixes the smaller issues, still working on the more complex ones https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): ...
4 years ago (2016-11-22 20:48:42 UTC) #12
lilyhoughton
https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/test/cronet_netlog_test.mm File components/cronet/ios/test/cronet_netlog_test.mm (right): https://codereview.chromium.org/2465303002/diff/60001/components/cronet/ios/test/cronet_netlog_test.mm#newcode37 components/cronet/ios/test/cronet_netlog_test.mm:37: EXPECT_TRUE(netlog_started); On 2016/11/18 22:17:27, kapishnikov wrote: > Can we ...
4 years ago (2016-12-02 16:30:07 UTC) #13
mef
https://codereview.chromium.org/2465303002/diff/120001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/120001/components/cronet/ios/Cronet.h#newcode80 components/cronet/ios/Cronet.h:80: + (NSString*)netLogPath:(NSString*)fileName; maybe call it 'getNetLogPathForFile:' https://codereview.chromium.org/2465303002/diff/120001/components/cronet/ios/Cronet.mm File components/cronet/ios/Cronet.mm ...
4 years ago (2016-12-09 18:30:41 UTC) #15
lilyhoughton
https://codereview.chromium.org/2465303002/diff/120001/components/cronet/ios/Cronet.h File components/cronet/ios/Cronet.h (right): https://codereview.chromium.org/2465303002/diff/120001/components/cronet/ios/Cronet.h#newcode80 components/cronet/ios/Cronet.h:80: + (NSString*)netLogPath:(NSString*)fileName; On 2016/12/09 18:30:40, mef wrote: > maybe ...
4 years ago (2016-12-09 19:42:50 UTC) #16
lilyhoughton
4 years ago (2016-12-12 19:10:54 UTC) #17
mef
lgtm mod nits. https://codereview.chromium.org/2465303002/diff/140001/components/cronet/ios/test/cronet_netlog_test.mm File components/cronet/ios/test/cronet_netlog_test.mm (right): https://codereview.chromium.org/2465303002/diff/140001/components/cronet/ios/test/cronet_netlog_test.mm#newcode8 components/cronet/ios/test/cronet_netlog_test.mm:8: #include "base/logging.h" nit: unused https://codereview.chromium.org/2465303002/diff/140001/components/cronet/ios/test/cronet_netlog_test.mm#newcode9 components/cronet/ios/test/cronet_netlog_test.mm:9: ...
4 years ago (2016-12-20 17:56:41 UTC) #18
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/2465303002/160001
4 years ago (2016-12-20 20:34:47 UTC) #21
commit-bot: I haz the power
Failed to apply patch for components/cronet/ios/cronet_environment.h: While running git apply --index -p1; error: patch failed: ...
4 years ago (2016-12-20 23:31:02 UTC) #23
mef
On 2016/12/20 23:31:02, commit-bot: I haz the power wrote: > Failed to apply patch for ...
3 years, 12 months ago (2016-12-22 20:30:22 UTC) #24
mef
lgtm
3 years, 11 months ago (2017-01-06 22:11:31 UTC) #25
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/2465303002/160001
3 years, 11 months ago (2017-01-06 22:13:36 UTC) #27
commit-bot: I haz the power
Failed to apply patch for components/cronet/ios/cronet_environment.h: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-06 23:10:46 UTC) #29
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/2465303002/180001
3 years, 11 months ago (2017-01-09 18:15:56 UTC) #32
commit-bot: I haz the power
3 years, 11 months ago (2017-01-09 19:42:37 UTC) #35
Message was sent while issue was closed.
Committed patchset #9 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/214b3a27cc09cc76ba9b24a2eac7...

Powered by Google App Engine
This is Rietveld 408576698