Removing profile_->GetPath().IsParent(path) check for
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:Sam McNally <sammc@chromium.org> Reviewed-by:
Charles . <charleszhao@chromium.org> Commit-Queue: Charles . <charleszhao@chromium.org> Cr-Commit-Position: refs/heads/master@{#816047}
Showing
Please register or sign in to comment