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

Unified Diff: trunk/src/components/visitedlink/browser/visitedlink_master.cc

Issue 100923007: Revert 239400 "Revert 239280 "Move more file_util functions to b..." (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
Index: trunk/src/components/visitedlink/browser/visitedlink_master.cc
===================================================================
--- trunk/src/components/visitedlink/browser/visitedlink_master.cc (revision 239400)
+++ trunk/src/components/visitedlink/browser/visitedlink_master.cc (working copy)
@@ -31,8 +31,6 @@
using content::BrowserThread;
using file_util::ScopedFILE;
-using file_util::OpenFile;
-using file_util::TruncateFile;
namespace visitedlink {
@@ -68,7 +66,7 @@
// Opens file on a background thread to not block UI thread.
void AsyncOpen(FILE** file, const base::FilePath& filename) {
- *file = OpenFile(filename, "wb+");
+ *file = base::OpenFile(filename, "wb+");
DLOG_IF(ERROR, !(*file)) << "Failed to open file " << filename.value();
}
@@ -105,7 +103,7 @@
// by the time of scheduling the task for execution.
void AsyncTruncate(FILE** file) {
if (*file)
- base::IgnoreResult(TruncateFile(*file));
+ base::IgnoreResult(base::TruncateFile(*file));
}
// Closes the file on a background thread and releases memory used for storage
@@ -542,7 +540,7 @@
base::FilePath filename;
GetDatabaseFileName(&filename);
- ScopedFILE file_closer(OpenFile(filename, "rb+"));
+ ScopedFILE file_closer(base::OpenFile(filename, "rb+"));
if (!file_closer.get())
return false;

Powered by Google App Engine
This is Rietveld 408576698