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

Unified Diff: net/base/file_stream_posix.cc

Issue 10565009: (Finally) Remove NetLog::EventParameters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fix a couple more files Created 8 years, 6 months 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
« no previous file with comments | « no previous file | net/base/net_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/file_stream_posix.cc
===================================================================
--- net/base/file_stream_posix.cc (revision 142915)
+++ net/base/file_stream_posix.cc (working copy)
@@ -83,7 +83,7 @@
*result = OK;
*file = base::CreatePlatformFile(path, open_flags, NULL, NULL);
if (*file == base::kInvalidPlatformFileValue) {
- bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL);
+ bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN);
*result = RecordAndMapError(errno, FILE_ERROR_SOURCE_OPEN, record_uma,
bound_net_log);
}
@@ -104,13 +104,13 @@
// Closes a file with some network logging.
void CloseFile(base::PlatformFile file,
const net::BoundNetLog& bound_net_log) {
- bound_net_log.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE, NULL);
+ bound_net_log.AddEvent(net::NetLog::TYPE_FILE_STREAM_CLOSE);
if (file == base::kInvalidPlatformFileValue)
return;
if (!base::ClosePlatformFile(file))
NOTREACHED();
- bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN, NULL);
+ bound_net_log.EndEvent(net::NetLog::TYPE_FILE_STREAM_OPEN);
}
// Closes a file with CloseFile() and signals the completion.
@@ -257,7 +257,7 @@
bound_net_log_(net::BoundNetLog::Make(net_log,
net::NetLog::SOURCE_FILESTREAM)),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
}
FileStreamPosix::FileStreamPosix(
@@ -269,7 +269,7 @@
bound_net_log_(net::BoundNetLog::Make(net_log,
net::NetLog::SOURCE_FILESTREAM)),
weak_ptr_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)) {
- bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.BeginEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
}
FileStreamPosix::~FileStreamPosix() {
@@ -294,7 +294,7 @@
}
}
- bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE, NULL);
+ bound_net_log_.EndEvent(net::NetLog::TYPE_FILE_STREAM_ALIVE);
}
void FileStreamPosix::Close(const CompletionCallback& callback) {
« no previous file with comments | « no previous file | net/base/net_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698