diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 22:06:07 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-11-03 22:06:07 +0000 |
commit | 15d53df08758ee3b35a08cd058b3b57bfddba227 (patch) | |
tree | 72c17d4153ab18c58210bab0673a92e92f152415 /base/platform_file_win.cc | |
parent | d7e9a8609d36bee7a8510dc95eec201ed44d37e0 (diff) | |
download | chromium_src-15d53df08758ee3b35a08cd058b3b57bfddba227.zip chromium_src-15d53df08758ee3b35a08cd058b3b57bfddba227.tar.gz chromium_src-15d53df08758ee3b35a08cd058b3b57bfddba227.tar.bz2 |
Revert 64960 - Turn on file access checks on Win.
BUG=60211
Review URL: http://codereview.chromium.org/4222005
TBR=jam@chromium.org
Review URL: http://codereview.chromium.org/4431001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@64974 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/platform_file_win.cc')
-rw-r--r-- | base/platform_file_win.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/base/platform_file_win.cc b/base/platform_file_win.cc index 34d8e45..3aa02e8 100644 --- a/base/platform_file_win.cc +++ b/base/platform_file_win.cc @@ -6,7 +6,6 @@ #include "base/file_path.h" #include "base/logging.h" -#include "base/thread_restrictions.h" namespace base { @@ -14,8 +13,6 @@ PlatformFile CreatePlatformFile(const FilePath& name, int flags, bool* created, PlatformFileError* error_code) { - base::ThreadRestrictions::AssertIOAllowed(); - DWORD disposition = 0; if (flags & PLATFORM_FILE_OPEN) @@ -111,12 +108,10 @@ PlatformFile CreatePlatformFile(const std::wstring& name, int flags, } 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 ReadPlatformFile(PlatformFile file, int64 offset, char* data, int size) { int WritePlatformFile(PlatformFile file, int64 offset, const char* data, int size) { - base::ThreadRestrictions::AssertIOAllowed(); if (file == kInvalidPlatformFileValue) return -1; @@ -157,7 +151,6 @@ int WritePlatformFile(PlatformFile file, int64 offset, } bool TruncatePlatformFile(PlatformFile file, int64 length) { - base::ThreadRestrictions::AssertIOAllowed(); if (file == kInvalidPlatformFileValue) return false; @@ -183,13 +176,11 @@ bool TruncatePlatformFile(PlatformFile file, int64 length) { } 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 TouchPlatformFile(PlatformFile file, const base::Time& last_access_time, } bool GetPlatformFileInfo(PlatformFile file, PlatformFileInfo* info) { - base::ThreadRestrictions::AssertIOAllowed(); if (!info) return false; |