diff options
author | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 22:12:43 +0000 |
---|---|---|
committer | ojan@google.com <ojan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-12 22:12:43 +0000 |
commit | c1da9339ac3ac493e53a094dffb4d49cc3aa8dfd (patch) | |
tree | 0224c0b3d85fe5078e49cc8d9b1c8f54c98fe200 /base/file_util.cc | |
parent | 6bea3284a8c15fc9a0e793d0da00423c2c2b885c (diff) | |
download | chromium_src-c1da9339ac3ac493e53a094dffb4d49cc3aa8dfd.zip chromium_src-c1da9339ac3ac493e53a094dffb4d49cc3aa8dfd.tar.gz chromium_src-c1da9339ac3ac493e53a094dffb4d49cc3aa8dfd.tar.bz2 |
Reverting 6935.
Broke compile
Review URL: http://codereview.chromium.org/14083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6938 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 1cf22b7..10e08d5 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -275,29 +275,6 @@ bool CloseFile(FILE* file) { return fclose(file) == 0; } -/////////////////////////////////////////////// -// MemoryMappedFile - -MemoryMappedFile::~MemoryMappedFile() { - CloseHandles(); -} - -bool MemoryMappedFile::Initialize(const FilePath& file_name) { - if (IsValid()) - return false; - - if (!MapFileToMemory(file_name)) { - CloseHandles(); - return false; - } - - return true; -} - -bool MemoryMappedFile::IsValid() { - return data_ != NULL; -} - // Deprecated functions ---------------------------------------------------- bool AbsolutePath(std::wstring* path_str) { |