| Index: webkit/fileapi/file_system_url.cc
|
| diff --git a/webkit/fileapi/file_system_url.cc b/webkit/fileapi/file_system_url.cc
|
| index 8071aaf08bb862c931992f0e41cbae0a2faa253f..3427ec8f309e769944c99a362814b37e155b9675 100644
|
| --- a/webkit/fileapi/file_system_url.cc
|
| +++ b/webkit/fileapi/file_system_url.cc
|
| @@ -155,12 +155,16 @@ std::string FileSystemURL::DebugString() const {
|
| }
|
|
|
| bool FileSystemURL::IsParent(const FileSystemURL& child) const {
|
| - return origin() == child.origin() &&
|
| - type() == child.type() &&
|
| - filesystem_id() == child.filesystem_id() &&
|
| + return IsInSameFileSystem(child) &&
|
| path().IsParent(child.path());
|
| }
|
|
|
| +bool FileSystemURL::IsInSameFileSystem(const FileSystemURL& other) const {
|
| + return origin() == other.origin() &&
|
| + type() == other.type() &&
|
| + filesystem_id() == other.filesystem_id();
|
| +}
|
| +
|
| bool FileSystemURL::operator==(const FileSystemURL& that) const {
|
| return origin_ == that.origin_ &&
|
| type_ == that.type_ &&
|
|
|