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

Unified Diff: trunk/src/base/event_recorder_win.cc

Issue 105823009: Revert 239280 "Move more file_util functions to base namespace." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years 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 | trunk/src/base/file_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/base/event_recorder_win.cc
===================================================================
--- trunk/src/base/event_recorder_win.cc (revision 239399)
+++ trunk/src/base/event_recorder_win.cc (working copy)
@@ -49,7 +49,7 @@
// Open the recording file.
DCHECK(!file_);
- file_ = OpenFile(filename, "wb+");
+ file_ = file_util::OpenFile(filename, "wb+");
if (!file_) {
DLOG(ERROR) << "EventRecorder could not open log file";
return false;
@@ -63,7 +63,7 @@
GetModuleHandle(NULL), 0);
if (!journal_hook_) {
DLOG(ERROR) << "EventRecorder Record Hook failed";
- CloseFile(file_);
+ file_util::CloseFile(file_);
return false;
}
@@ -84,7 +84,7 @@
::timeEndPeriod(1);
DCHECK(file_ != NULL);
- CloseFile(file_);
+ file_util::CloseFile(file_);
file_ = NULL;
journal_hook_ = NULL;
@@ -100,7 +100,7 @@
// Open the recording file.
DCHECK(!file_);
- file_ = OpenFile(filename, "rb");
+ file_ = file_util::OpenFile(filename, "rb");
if (!file_) {
DLOG(ERROR) << "EventRecorder Playback could not open log file";
return false;
@@ -108,7 +108,7 @@
// Read the first event from the record.
if (fread(&playback_msg_, sizeof(EVENTMSG), 1, file_) != 1) {
DLOG(ERROR) << "EventRecorder Playback has no records!";
- CloseFile(file_);
+ file_util::CloseFile(file_);
return false;
}
@@ -150,7 +150,7 @@
}
DCHECK(file_ != NULL);
- CloseFile(file_);
+ file_util::CloseFile(file_);
file_ = NULL;
::timeEndPeriod(1);
« no previous file with comments | « no previous file | trunk/src/base/file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698