diff options
author | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 05:33:17 +0000 |
---|---|---|
committer | benwells@chromium.org <benwells@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-18 05:33:17 +0000 |
commit | 25f0db994b2287fda9ce756d8ef8a48dc759bd54 (patch) | |
tree | 9dd05b819bde2c08525ff5ad5544638de9081710 /webkit/fileapi/file_system_util.cc | |
parent | 2a6bad165b4ce354d3a49889266aed2c5cfca8c4 (diff) | |
download | chromium_src-25f0db994b2287fda9ce756d8ef8a48dc759bd54.zip chromium_src-25f0db994b2287fda9ce756d8ef8a48dc759bd54.tar.gz chromium_src-25f0db994b2287fda9ce756d8ef8a48dc759bd54.tar.bz2 |
Allow extension fileSystem API to work with drag and drop entries.
BUG=133067
TEST=Manual testing
Review URL: https://chromiumcodereview.appspot.com/10561024
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142672 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/file_system_util.cc')
-rw-r--r-- | webkit/fileapi/file_system_util.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/webkit/fileapi/file_system_util.cc b/webkit/fileapi/file_system_util.cc index 285351a..089e4e2 100644 --- a/webkit/fileapi/file_system_util.cc +++ b/webkit/fileapi/file_system_util.cc @@ -292,7 +292,13 @@ bool CrackIsolatedFileSystemName(const std::string& filesystem_name, // |filesystem_name| is of the form {origin}:isolated_{filesystem_id}. std::string start_token(":"); start_token = start_token.append(kIsolatedName).append("_"); - size_t pos = filesystem_name.find(start_token); + // WebKit uses different case in its constant for isolated file system + // names, so we do a case insensitive compare by converting both strings + // to uppercase. + // TODO(benwells): Remove this when WebKit uses the same constant. + start_token = StringToUpperASCII(start_token); + std::string filesystem_name_upper = StringToUpperASCII(filesystem_name); + size_t pos = filesystem_name_upper.find(start_token); if (pos == std::string::npos) return false; if (pos == 0) |