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

Unified Diff: components/cronet/ios/cronet_environment.h

Issue 2465303002: [cronet] make startNetLogToFile write to correct file (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/cronet/ios/cronet_environment.h
diff --git a/components/cronet/ios/cronet_environment.h b/components/cronet/ios/cronet_environment.h
index 6afde9cb6236346fda0a17db616f6ee6375e1e88..72aa23dc38ebcf8046ab51dafa841b41a5357055 100644
--- a/components/cronet/ios/cronet_environment.h
+++ b/components/cronet/ios/cronet_environment.h
@@ -60,7 +60,7 @@ class CronetEnvironment {
// Creates a new net log (overwrites existing file with this name). If
// actively logging, this call is ignored.
- void StartNetLog(base::FilePath::StringType file_name, bool log_bytes);
+ bool StartNetLog(base::FilePath::StringType file_name, bool log_bytes);
// Stops logging and flushes file. If not currently logging this call is
// ignored.
void StopNetLog();
@@ -111,8 +111,7 @@ class CronetEnvironment {
const base::Closure& task);
// Helper methods that start/stop net logging on the network thread.
- void StartNetLogOnNetworkThread(const base::FilePath::StringType& file_name,
- bool log_bytes);
+ void StartNetLogOnNetworkThread(base::ScopedFILE file, bool log_bytes);
void StopNetLogOnNetworkThread(base::WaitableEvent* log_stopped_event);
// Returns the HttpNetworkSession object from the passed in

Powered by Google App Engine
This is Rietveld 408576698