• hirono's avatar
    Files.app: Fix DCHECK in FakeFileSystem. · bb138d42
    hirono authored
    Previous DCHECK uses IsUnderDriveMountPoint method which takes paths for
    external file system. But the paths used in FakeFileSystem are drive paths that
    are extracted from external file system paths. So it goes into infinity loop
    during traversing parent directory when a path pointing the out of my drive
    directory is given.
    
    The CL removes the check, and add util::GetDriveMyDriveRootPath().IsParent(file_path) to
    prevent the infinity loop.
    
    BUG=None
    TEST=None
    
    Review URL: https://codereview.chromium.org/583583003
    
    Cr-Commit-Position: refs/heads/master@{#296644}
    bb138d42
fake_file_system.cc 13.5 KB