diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 23:31:41 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-06 23:31:41 +0000 |
commit | 7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2 (patch) | |
tree | e606471e20eb79fea7a05c9005869065bf865ca1 /base/file_util_win.cc | |
parent | cab465ccf2a93d84e0f16987d8754ac2673eb118 (diff) | |
download | chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.zip chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.tar.gz chromium_src-7ae7c2cbd38f886f4056fa7434a6c1189d98ffd2.tar.bz2 |
Convert download manager to FilePath.
(Fixed up version of issue 17032. Now passes all unit tests.)
Review URL: http://codereview.chromium.org/16533
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7630 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_win.cc')
-rw-r--r-- | base/file_util_win.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/base/file_util_win.cc b/base/file_util_win.cc index c2dbf0a..b50ab09 100644 --- a/base/file_util_win.cc +++ b/base/file_util_win.cc @@ -549,12 +549,11 @@ int WriteFile(const std::wstring& filename, const char* data, int size) { return -1; } -bool RenameFileAndResetSecurityDescriptor( - const std::wstring& source_file_path, - const std::wstring& target_file_path) { +bool RenameFileAndResetSecurityDescriptor(const FilePath& source_file_path, + const FilePath& target_file_path) { // The parameters to SHFileOperation must be terminated with 2 NULL chars. - std::wstring source = source_file_path; - std::wstring target = target_file_path; + std::wstring source = source_file_path.value(); + std::wstring target = target_file_path.value(); source.append(1, L'\0'); target.append(1, L'\0'); |