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

Unified Diff: chrome/browser/chromeos/system/syslogs_provider.cc

Issue 19579005: Move ReadFileToString to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months 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/system/syslogs_provider.cc
diff --git a/chrome/browser/chromeos/system/syslogs_provider.cc b/chrome/browser/chromeos/system/syslogs_provider.cc
index 279d837090a5d64616ab25232a1bfa9fb18e7cca..5a1c00ea8713d5117cc37cc9a1c03a9410d093d1 100644
--- a/chrome/browser/chromeos/system/syslogs_provider.cc
+++ b/chrome/browser/chromeos/system/syslogs_provider.cc
@@ -142,8 +142,7 @@ LogDictionaryType* GetSystemLogs(base::FilePath* zip_file_name,
}
// Read logs from the temp file
std::string data;
- bool read_success = file_util::ReadFileToString(temp_filename,
- &data);
+ bool read_success = base::ReadFileToString(temp_filename, &data);
// if we were using an internal temp file, the user does not need the
// logs to stay past the ReadFile call - delete the file
base::DeleteFile(temp_filename, false);
@@ -348,7 +347,7 @@ void SyslogsProviderImpl::ReadSyslogs(
void SyslogsProviderImpl::LoadCompressedLogs(const base::FilePath& zip_file,
std::string* zip_content) {
DCHECK(zip_content);
- if (!file_util::ReadFileToString(zip_file, zip_content)) {
+ if (!base::ReadFileToString(zip_file, zip_content)) {
LOG(ERROR) << "Cannot read compressed logs file from " <<
zip_file.value().c_str();
}

Powered by Google App Engine
This is Rietveld 408576698