diff options
author | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 06:19:42 +0000 |
---|---|---|
committer | kinuko@chromium.org <kinuko@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-10-05 06:19:42 +0000 |
commit | e42c4d260d85a91ef08bfd84ab0dc0423ff3c99f (patch) | |
tree | e9d4225616d1108616380571e00c5d4a8eaee837 /base/file_util_proxy.cc | |
parent | d292409206bdfee695b72eae60279a15acb0acd8 (diff) | |
download | chromium_src-e42c4d260d85a91ef08bfd84ab0dc0423ff3c99f.zip chromium_src-e42c4d260d85a91ef08bfd84ab0dc0423ff3c99f.tar.gz chromium_src-e42c4d260d85a91ef08bfd84ab0dc0423ff3c99f.tar.bz2 |
Marks Test{Move,Copy}FailureContainsPath FAILS on Windows, also makes a fix attempt for the failure.
This patch also contains an attempt to fix the failure.
TBR=ericu
BUG=none
TEST=green bot
Review URL: http://codereview.chromium.org/3516014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@61481 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_proxy.cc')
-rw-r--r-- | base/file_util_proxy.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/base/file_util_proxy.cc b/base/file_util_proxy.cc index 6d16043..b3b18f8 100644 --- a/base/file_util_proxy.cc +++ b/base/file_util_proxy.cc @@ -27,7 +27,7 @@ static base::PlatformFileError PerformCommonCheckAndPreparationForMoveAndCopy( return base::PLATFORM_FILE_ERROR_NOT_FOUND; // It is an error to try to copy/move an entry into its child. - if (file_util::ContainsPath(src_file_path, dest_file_path)) + if (src_file_path.IsParent(dest_file_path)) return base::PLATFORM_FILE_ERROR_INVALID_OPERATION; // Now it is ok to return if the |dest_file_path| does not exist. |