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

Unified Diff: chrome/browser/chromeos/drive/file_system_util.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
Index: chrome/browser/chromeos/drive/file_system_util.cc
diff --git a/chrome/browser/chromeos/drive/file_system_util.cc b/chrome/browser/chromeos/drive/file_system_util.cc
index 48b70cc49b5383363ad751729a0be00644c8ef90..aae3cdfd7fef39ceb5d7e81b4daa0ba074b75e45 100644
--- a/chrome/browser/chromeos/drive/file_system_util.cc
+++ b/chrome/browser/chromeos/drive/file_system_util.cc
@@ -72,7 +72,7 @@ std::string ReadStringFromGDocFile(const base::FilePath& file_path,
const std::string& key) {
const int64 kMaxGDocSize = 4096;
int64 file_size = 0;
- if (!file_util::GetFileSize(file_path, &file_size) ||
+ if (!base::GetFileSize(file_path, &file_size) ||
file_size > kMaxGDocSize) {
LOG(WARNING) << "File too large to be a GDoc file " << file_path.value();
return std::string();

Powered by Google App Engine
This is Rietveld 408576698