Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(121)

Unified Diff: sql/connection.cc

Issue 89523002: Move Posix file utils to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/common/extension_resource_unittest.cc ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sql/connection.cc
diff --git a/sql/connection.cc b/sql/connection.cc
index 0f40779d127f7aa233d4bb627aeb64fb23bf3b50..6ca60ef0ecb3dcf1e8a704d3630a86eba3560f51 100644
--- a/sql/connection.cc
+++ b/sql/connection.cc
@@ -881,9 +881,9 @@ bool Connection::OpenInternal(const std::string& file_name,
int mode = 0;
// TODO(shess): Arguably, failure to retrieve and change
// permissions should be fatal if the file exists.
- if (file_util::GetPosixFilePermissions(file_path, &mode)) {
- mode &= file_util::FILE_PERMISSION_USER_MASK;
- file_util::SetPosixFilePermissions(file_path, mode);
+ if (base::GetPosixFilePermissions(file_path, &mode)) {
+ mode &= base::FILE_PERMISSION_USER_MASK;
+ base::SetPosixFilePermissions(file_path, mode);
// SQLite sets the permissions on these files from the main
// database on create. Set them here in case they already exist
@@ -891,8 +891,8 @@ bool Connection::OpenInternal(const std::string& file_name,
// be fatal unless the file doesn't exist.
base::FilePath journal_path(file_name + FILE_PATH_LITERAL("-journal"));
base::FilePath wal_path(file_name + FILE_PATH_LITERAL("-wal"));
- file_util::SetPosixFilePermissions(journal_path, mode);
- file_util::SetPosixFilePermissions(wal_path, mode);
+ base::SetPosixFilePermissions(journal_path, mode);
+ base::SetPosixFilePermissions(wal_path, mode);
}
}
#endif // defined(OS_POSIX)
« no previous file with comments | « extensions/common/extension_resource_unittest.cc ('k') | sql/connection_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698