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

Unified Diff: webkit/browser/database/database_tracker.cc

Issue 167403002: Remove some PlatformFile uses from WebKit (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
Index: webkit/browser/database/database_tracker.cc
diff --git a/webkit/browser/database/database_tracker.cc b/webkit/browser/database/database_tracker.cc
index 085e81d98912d698369b4e856287f05808b6f525..d84e719acdca1b772a1072a964da0211b50a51bc 100644
--- a/webkit/browser/database/database_tracker.cc
+++ b/webkit/browser/database/database_tracker.cc
@@ -10,9 +10,9 @@
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/file_util.h"
+#include "base/files/file.h"
#include "base/files/file_enumerator.h"
#include "base/message_loop/message_loop_proxy.h"
-#include "base/platform_file.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "net/base/net_errors.h"
@@ -828,14 +828,11 @@ void DatabaseTracker::ClearSessionOnlyOrigins() {
for (std::vector<base::string16>::iterator database = databases.begin();
database != databases.end(); ++database) {
- base::PlatformFile file_handle = base::CreatePlatformFile(
- GetFullDBFilePath(*origin, *database),
- base::PLATFORM_FILE_OPEN_ALWAYS |
- base::PLATFORM_FILE_SHARE_DELETE |
- base::PLATFORM_FILE_DELETE_ON_CLOSE |
- base::PLATFORM_FILE_READ,
- NULL, NULL);
- base::ClosePlatformFile(file_handle);
+ base::File file(GetFullDBFilePath(*origin, *database),
+ base::File::FLAG_OPEN_ALWAYS |
+ base::File::FLAG_SHARE_DELETE |
+ base::File::FLAG_DELETE_ON_CLOSE |
+ base::File::FLAG_READ);
}
DeleteOrigin(*origin, true);
}
« no previous file with comments | « webkit/browser/blob/local_file_stream_reader_unittest.cc ('k') | webkit/browser/database/database_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698