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

Unified Diff: base/platform_file_win.cc

Issue 4431001: Revert 64960 - Turn on file access checks on Win.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 1 month 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 | « base/file_version_info_win.cc ('k') | base/win/registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/platform_file_win.cc
===================================================================
--- base/platform_file_win.cc (revision 64973)
+++ base/platform_file_win.cc (working copy)
@@ -6,7 +6,6 @@
#include "base/file_path.h"
#include "base/logging.h"
-#include "base/thread_restrictions.h"
namespace base {
@@ -14,8 +13,6 @@
int flags,
bool* created,
PlatformFileError* error_code) {
- base::ThreadRestrictions::AssertIOAllowed();
-
DWORD disposition = 0;
if (flags & PLATFORM_FILE_OPEN)
@@ -111,12 +108,10 @@
}
bool ClosePlatformFile(PlatformFile file) {
- base::ThreadRestrictions::AssertIOAllowed();
return (CloseHandle(file) != 0);
}
int ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) {
- base::ThreadRestrictions::AssertIOAllowed();
if (file == kInvalidPlatformFileValue)
return -1;
@@ -138,7 +133,6 @@
int WritePlatformFile(PlatformFile file, int64 offset,
const char* data, int size) {
- base::ThreadRestrictions::AssertIOAllowed();
if (file == kInvalidPlatformFileValue)
return -1;
@@ -157,7 +151,6 @@
}
bool TruncatePlatformFile(PlatformFile file, int64 length) {
- base::ThreadRestrictions::AssertIOAllowed();
if (file == kInvalidPlatformFileValue)
return false;
@@ -183,13 +176,11 @@
}
bool FlushPlatformFile(PlatformFile file) {
- base::ThreadRestrictions::AssertIOAllowed();
return ((file != kInvalidPlatformFileValue) && ::FlushFileBuffers(file));
}
bool TouchPlatformFile(PlatformFile file, const base::Time& last_access_time,
const base::Time& last_modified_time) {
- base::ThreadRestrictions::AssertIOAllowed();
if (file == kInvalidPlatformFileValue)
return false;
@@ -200,7 +191,6 @@
}
bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) {
- base::ThreadRestrictions::AssertIOAllowed();
if (!info)
return false;
« no previous file with comments | « base/file_version_info_win.cc ('k') | base/win/registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698