| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "base/test/test_file_util.h" | 5 #include "base/test/test_file_util.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <aclapi.h> | 8 #include <aclapi.h> |
| 9 #include <shlwapi.h> | 9 #include <shlwapi.h> |
| 10 | 10 |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/file_util.h" | |
| 14 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
| 14 #include "base/files/file_util.h" |
| 15 #include "base/logging.h" | 15 #include "base/logging.h" |
| 16 #include "base/strings/string_split.h" | 16 #include "base/strings/string_split.h" |
| 17 #include "base/threading/platform_thread.h" | 17 #include "base/threading/platform_thread.h" |
| 18 #include "base/win/scoped_handle.h" | 18 #include "base/win/scoped_handle.h" |
| 19 | 19 |
| 20 namespace base { | 20 namespace base { |
| 21 | 21 |
| 22 static const ptrdiff_t kOneMB = 1024 * 1024; | 22 static const ptrdiff_t kOneMB = 1024 * 1024; |
| 23 | 23 |
| 24 namespace { | 24 namespace { |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 273 DCHECK(info_ != NULL); | 273 DCHECK(info_ != NULL); |
| 274 DCHECK_NE(0u, length_); | 274 DCHECK_NE(0u, length_); |
| 275 } | 275 } |
| 276 | 276 |
| 277 FilePermissionRestorer::~FilePermissionRestorer() { | 277 FilePermissionRestorer::~FilePermissionRestorer() { |
| 278 if (!RestorePermissionInfo(path_, info_, length_)) | 278 if (!RestorePermissionInfo(path_, info_, length_)) |
| 279 NOTREACHED(); | 279 NOTREACHED(); |
| 280 } | 280 } |
| 281 | 281 |
| 282 } // namespace base | 282 } // namespace base |
| OLD | NEW |