summaryrefslogtreecommitdiffstats
path: root/base/file_path.h
diff options
context:
space:
mode:
authoravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:31:29 +0000
committeravi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-29 20:31:29 +0000
commitf1ce6e6c4d6bb08bd1534170b4647aabf8ff25ef (patch)
tree9166583bf968e8b0e780482823b2592fcade223f /base/file_path.h
parent401392455919b47e7a85a20a058754e4b05da488 (diff)
downloadchromium_src-f1ce6e6c4d6bb08bd1534170b4647aabf8ff25ef.zip
chromium_src-f1ce6e6c4d6bb08bd1534170b4647aabf8ff25ef.tar.gz
chromium_src-f1ce6e6c4d6bb08bd1534170b4647aabf8ff25ef.tar.bz2
Allow extension extensions to be case-insensitive.
BUG=none TEST=try to load an extension with a capital letter or two in the extension's extension. It should load. Review URL: http://codereview.chromium.org/147017 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@19520 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.h')
-rw-r--r--base/file_path.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/base/file_path.h b/base/file_path.h
index ae4d36d..5fe8cda 100644
--- a/base/file_path.h
+++ b/base/file_path.h
@@ -197,6 +197,10 @@ class FilePath {
// Returns "" if BaseName() == "." or "..".
FilePath ReplaceExtension(const StringType& extension) const;
+ // Returns true if the file path matches the specified extension. The test is
+ // case insensitive. Don't forget the leading period if appropriate.
+ bool MatchesExtension(const StringType& extension) const;
+
// Returns a FilePath by appending a separator and the supplied path
// component to this object's path. Append takes care to avoid adding
// excessive separators if this object's path already ends with a separator.