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

Unified Diff: chrome/browser/diagnostics/recon_diagnostics.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/chromeos/settings/owner_key_util.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/diagnostics/recon_diagnostics.cc
diff --git a/chrome/browser/diagnostics/recon_diagnostics.cc b/chrome/browser/diagnostics/recon_diagnostics.cc
index 185c9e2b106c98a6257a9d6ea8ed2286aec93278..fb1f7e5107f06288d797f0b985446f77c38de0f5 100644
--- a/chrome/browser/diagnostics/recon_diagnostics.cc
+++ b/chrome/browser/diagnostics/recon_diagnostics.cc
@@ -191,7 +191,7 @@ class JSONTest : public DiagnosticsTest {
return true;
}
int64 file_size;
- if (!file_util::GetFileSize(path_, &file_size)) {
+ if (!base::GetFileSize(path_, &file_size)) {
RecordFailure(DIAG_RECON_CANNOT_OBTAIN_FILE_SIZE,
"Cannot obtain file size");
return true;
@@ -312,7 +312,7 @@ class PathTest : public DiagnosticsTest {
if (path_info_.is_directory) {
dir_or_file_size = base::ComputeDirectorySize(dir_or_file);
} else {
- file_util::GetFileSize(dir_or_file, &dir_or_file_size);
+ base::GetFileSize(dir_or_file, &dir_or_file_size);
}
if (!dir_or_file_size && !path_info_.is_optional) {
RecordFailure(DIAG_RECON_CANNOT_OBTAIN_SIZE,
« no previous file with comments | « chrome/browser/chromeos/settings/owner_key_util.cc ('k') | chrome/browser/download/download_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698