• Charles Zhao's avatar
    Removing profile_->GetPath().IsParent(path) check for · b4ba481b
    Charles Zhao authored
    FileTasksNotifier::NotifyObservers.
    
    It's there only because the util::GetMyFilesFolderForProfile(profile)
    returns a different result than
    profile.GetPath().Append("MyFiles") for TestingProfile in unit tests.
    
    This fix basically using util::GetMyFilesFolderForProfile(profile) in
    both the lib and unit tests.
    
    util::GetMyFilesFolderForProfile(profile_).DirName() is used to make it also compatible with drive path in browser_tests, like /b/s/w/itMnZ3yB/.org.chromium.Chromium.skZUsj/user_data/user/drive/v2/root/Beautiful
    
    
    Bug: 1077163
    
    Change-Id: I0a2cc3531929b29c0a4ef254d9db02dd4b789bc4
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2211583Reviewed-by: default avatarSam McNally <sammc@chromium.org>
    Reviewed-by: default avatarCharles . <charleszhao@chromium.org>
    Commit-Queue: Charles . <charleszhao@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#816047}
    b4ba481b
file_tasks_notifier.cc 8.88 KB