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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_store_file.cc

Issue 102873002: Move GetFileSize, NormalizeFilePath to base namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « chrome/browser/safe_browsing/safe_browsing_database.cc ('k') | chrome/browser/sessions/session_backend.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_store_file.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_store_file.cc b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
index 10442c4e439478b14e743a1ca3a7bfa5b2fedd17..3500819926f216371c79af451027f9fee796c100 100644
--- a/chrome/browser/safe_browsing/safe_browsing_store_file.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_store_file.cc
@@ -135,7 +135,7 @@ void DeleteChunksFromSet(const base::hash_set<int32>& deleted,
bool FileHeaderSanityCheck(const base::FilePath& filename,
const FileHeader& header) {
int64 size = 0;
- if (!file_util::GetFileSize(filename, &size))
+ if (!base::GetFileSize(filename, &size))
return false;
int64 expected_size = sizeof(FileHeader);
@@ -181,7 +181,7 @@ void SafeBrowsingStoreFile::CheckForOriginalAndDelete(
current_filename.DirName().AppendASCII("Safe Browsing"));
if (base::PathExists(original_filename)) {
int64 size = 0;
- if (file_util::GetFileSize(original_filename, &size)) {
+ if (base::GetFileSize(original_filename, &size)) {
UMA_HISTOGRAM_COUNTS("SB2.OldDatabaseKilobytes",
static_cast<int>(size / 1024));
}
@@ -230,7 +230,7 @@ bool SafeBrowsingStoreFile::CheckValidity() {
return OnCorruptDatabase();
int64 size = 0;
- if (!file_util::GetFileSize(filename_, &size))
+ if (!base::GetFileSize(filename_, &size))
return OnCorruptDatabase();
base::MD5Context context;
@@ -547,7 +547,7 @@ bool SafeBrowsingStoreFile::DoUpdate(
// Get chunk file's size for validating counts.
int64 size = 0;
- if (!file_util::GetFileSize(TemporaryFileForFilename(filename_), &size))
+ if (!base::GetFileSize(TemporaryFileForFilename(filename_), &size))
return OnCorruptDatabase();
// Track update size to answer questions at http://crbug.com/72216 .
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_database.cc ('k') | chrome/browser/sessions/session_backend.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698