diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 01:11:44 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-10-15 01:11:44 +0000 |
commit | bc6a901f7d54c1307fcffc82181aedcf694470f7 (patch) | |
tree | b24e0d6fb40364b695d95291cd4bf0f134f47afa /base/file_util_win.cc | |
parent | 3c5edd42af2fab481784f122d00d75a2c28661b7 (diff) | |
download | chromium_src-bc6a901f7d54c1307fcffc82181aedcf694470f7.zip chromium_src-bc6a901f7d54c1307fcffc82181aedcf694470f7.tar.gz chromium_src-bc6a901f7d54c1307fcffc82181aedcf694470f7.tar.bz2 |
More CopyDirectory tests and fixes
BUG=themes stopped working on Linux and Mac
TEST=unittests
Review URL: http://codereview.chromium.org/269083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29076 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r-- | base/file_util_win.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index 972a7b8..2d4a694 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -175,6 +175,9 @@ bool CopyDirectory(const FilePath& from_path, const FilePath& to_path, if (recursive) return ShellCopy(from_path, to_path, true); + // The following code assumes that from path is a directory. + DCHECK(DirectoryExists(from_path)); + // Instead of creating a new directory, we copy the old one to include the // security information of the folder as part of the copy. if (!PathExists(to_path)) { |