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

Unified Diff: content/browser/tracing/tracing_controller_impl.cc

Issue 109043002: Move more file_util functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
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
Index: content/browser/tracing/tracing_controller_impl.cc
diff --git a/content/browser/tracing/tracing_controller_impl.cc b/content/browser/tracing/tracing_controller_impl.cc
index ba9f2e01ab1b88fe1104f123b98191e0b02d9087..bc7cee2f930bc92a5fd5df6eea1792b4ee511654 100644
--- a/content/browser/tracing/tracing_controller_impl.cc
+++ b/content/browser/tracing/tracing_controller_impl.cc
@@ -68,7 +68,7 @@ TracingControllerImpl::ResultFile::ResultFile(const base::FilePath& path)
void TracingControllerImpl::ResultFile::OpenTask() {
if (path_.empty())
base::CreateTemporaryFile(&path_);
- file_ = file_util::OpenFile(path_, "w");
+ file_ = base::OpenFile(path_, "w");
if (!file_) {
LOG(ERROR) << "Failed to open " << path_.value();
return;
@@ -104,7 +104,7 @@ void TracingControllerImpl::ResultFile::CloseTask(
const char* trailout = "]}";
size_t written = fwrite(trailout, strlen(trailout), 1, file_);
DCHECK(written == 1);
- file_util::CloseFile(file_);
+ base::CloseFile(file_);
file_ = NULL;
BrowserThread::PostTask(BrowserThread::UI, FROM_HERE, callback);
« no previous file with comments | « content/browser/renderer_host/media/video_capture_host_unittest.cc ('k') | content/child/npapi/plugin_stream_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698