summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 21:42:48 +0000
committertommi@chromium.org <tommi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-23 21:42:48 +0000
commite318fe5ea4130cccbf266c1e25c9703b811f7bb6 (patch)
tree03d20b1fbd92104846d3e39b01a223c61dd2774c
parent677445e895b94dc7003e3b3dc752943c6e290a5f (diff)
downloadchromium_src-e318fe5ea4130cccbf266c1e25c9703b811f7bb6.zip
chromium_src-e318fe5ea4130cccbf266c1e25c9703b811f7bb6.tar.gz
chromium_src-e318fe5ea4130cccbf266c1e25c9703b811f7bb6.tar.bz2
Make MemoryMappedFile::IsValid const
TEST=none BUG=none Review URL: http://codereview.chromium.org/6574005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75794 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--base/file_util.cc2
-rw-r--r--base/file_util.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index c9661e7..7cf67dd2 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -341,7 +341,7 @@ bool MemoryMappedFile::Initialize(base::PlatformFile file) {
return true;
}
-bool MemoryMappedFile::IsValid() {
+bool MemoryMappedFile::IsValid() const {
return data_ != NULL;
}
diff --git a/base/file_util.h b/base/file_util.h
index ab6906d..d89fa71 100644
--- a/base/file_util.h
+++ b/base/file_util.h
@@ -510,7 +510,7 @@ class MemoryMappedFile {
size_t length() const { return length_; }
// Is file_ a valid file handle that points to an open, memory mapped file?
- bool IsValid();
+ bool IsValid() const;
private:
// Open the given file and pass it to MapFileToMemoryInternal().