Index: webkit/fileapi/file_system_operation.cc |
diff --git a/webkit/fileapi/file_system_operation.cc b/webkit/fileapi/file_system_operation.cc |
index 1a362552e19063f8de864eca6f3a3dd587a93ef3..1da93e9571a9d0a366e83e932195af7f88167943 100644 |
--- a/webkit/fileapi/file_system_operation.cc |
+++ b/webkit/fileapi/file_system_operation.cc |
@@ -724,7 +724,7 @@ base::PlatformFileError FileSystemOperation::SetUpFileSystemPath( |
GetMountPointProvider(type); |
// Check if the cracked file name looks good to create. |
- if (provider->IsRestrictedFileName(cracked_path.BaseName())) |
+ if (provider->IsRestrictedFileName(VirtualPath::BaseName(cracked_path))) |
return base::PLATFORM_FILE_ERROR_SECURITY; |
} |