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

Unified Diff: chrome/browser/chromeos/swap_metrics.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/swap_metrics.cc
diff --git a/chrome/browser/chromeos/swap_metrics.cc b/chrome/browser/chromeos/swap_metrics.cc
index efebac33bc87c2c7552bfbc149e206fea1a75c83..974fcc83e5df72b0e43e5c6d02e4593120731d3d 100644
--- a/chrome/browser/chromeos/swap_metrics.cc
+++ b/chrome/browser/chromeos/swap_metrics.cc
@@ -261,7 +261,7 @@ bool SwapMetrics::Backend::GetFieldFromKernelOutput(const std::string& path,
const std::string& field,
int64* value) {
std::string file_content;
- if (!file_util::ReadFileToString(FilePath(path), &file_content)) {
+ if (!base::ReadFileToString(FilePath(path), &file_content)) {
LOG(WARNING) << "Cannot read " << path;
return false;
}
@@ -296,7 +296,7 @@ bool SwapMetrics::Backend::TokenizeOneLineFile(const std::string& path,
std::vector<std::string>*
tokens) {
std::string file_content;
- if (!file_util::ReadFileToString(FilePath(path), &file_content)) {
+ if (!base::ReadFileToString(FilePath(path), &file_content)) {
LOG(WARNING) << "cannot read " << path;
return false;
}

Powered by Google App Engine
This is Rietveld 408576698