Index: base/test/test_file_util_win.cc |
diff --git a/base/test/test_file_util_win.cc b/base/test/test_file_util_win.cc |
index 0b7a0c6dfd3e023ee1fb24c49e848743bd5a9688..3c8a8e8f3ee69be0f95b2430d642fe00b72be2a7 100644 |
--- a/base/test/test_file_util_win.cc |
+++ b/base/test/test_file_util_win.cc |
@@ -259,6 +259,14 @@ bool HasInternetZoneIdentifier(const FilePath& full_path) { |
} |
} |
+bool MakeFileUnreadable(const FilePath& path) { |
+ return DenyFilePermission(path, GENERIC_READ); |
+} |
+ |
+bool MakeFileUnwritable(const FilePath& path) { |
+ return DenyFilePermission(path, GENERIC_WRITE); |
+} |
+ |
} // namespace base |
namespace file_util { |
@@ -267,14 +275,6 @@ using base::DenyFilePermission; |
using base::GetPermissionInfo; |
using base::RestorePermissionInfo; |
-bool MakeFileUnreadable(const base::FilePath& path) { |
- return DenyFilePermission(path, GENERIC_READ); |
-} |
- |
-bool MakeFileUnwritable(const base::FilePath& path) { |
- return DenyFilePermission(path, GENERIC_WRITE); |
-} |
- |
PermissionRestorer::PermissionRestorer(const base::FilePath& path) |
rvargas (doing something else)
2014/08/06 23:21:49
base::FilePermissionRestorer
|
: path_(path), info_(NULL), length_(0) { |
info_ = GetPermissionInfo(path_, &length_); |