OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/installer/util/copy_tree_work_item.h" | 5 #include "chrome/installer/util/copy_tree_work_item.h" |
6 | 6 |
7 #include <shlwapi.h> | 7 #include <shlwapi.h> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/files/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "chrome/installer/util/logging_installer.h" | 11 #include "chrome/installer/util/logging_installer.h" |
12 | 12 |
13 CopyTreeWorkItem::~CopyTreeWorkItem() { | 13 CopyTreeWorkItem::~CopyTreeWorkItem() { |
14 } | 14 } |
15 | 15 |
16 CopyTreeWorkItem::CopyTreeWorkItem(const base::FilePath& source_path, | 16 CopyTreeWorkItem::CopyTreeWorkItem(const base::FilePath& source_path, |
17 const base::FilePath& dest_path, | 17 const base::FilePath& dest_path, |
18 const base::FilePath& temp_dir, | 18 const base::FilePath& temp_dir, |
19 CopyOverWriteOption overwrite_option, | 19 CopyOverWriteOption overwrite_option, |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 return false; | 130 return false; |
131 | 131 |
132 HANDLE handle = ::CreateFile(path.value().c_str(), FILE_ALL_ACCESS, | 132 HANDLE handle = ::CreateFile(path.value().c_str(), FILE_ALL_ACCESS, |
133 NULL, NULL, OPEN_EXISTING, NULL, NULL); | 133 NULL, NULL, OPEN_EXISTING, NULL, NULL); |
134 if (handle == INVALID_HANDLE_VALUE) | 134 if (handle == INVALID_HANDLE_VALUE) |
135 return true; | 135 return true; |
136 | 136 |
137 CloseHandle(handle); | 137 CloseHandle(handle); |
138 return false; | 138 return false; |
139 } | 139 } |
OLD | NEW |