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

Unified Diff: chrome/browser/chromeos/version_loader.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/version_loader.cc
diff --git a/chrome/browser/chromeos/version_loader.cc b/chrome/browser/chromeos/version_loader.cc
index 921c60bf817aaf49ecd3bcb31f1aac52f1b99bd2..5ee7046e32f1e5d7c5fc38a2879ca5666b3af952 100644
--- a/chrome/browser/chromeos/version_loader.cc
+++ b/chrome/browser/chromeos/version_loader.cc
@@ -135,7 +135,7 @@ void VersionLoader::Backend::GetVersion(VersionFormat format,
std::string contents;
const base::FilePath file_path(kPathVersion);
- if (file_util::ReadFileToString(file_path, &contents)) {
+ if (base::ReadFileToString(file_path, &contents)) {
*version = ParseVersion(
contents,
(format == VERSION_FULL) ? kFullVersionPrefix : kVersionPrefix);
@@ -159,7 +159,7 @@ void VersionLoader::Backend::GetFirmware(std::string* firmware) {
std::string contents;
const base::FilePath file_path(kPathFirmware);
- if (file_util::ReadFileToString(file_path, &contents)) {
+ if (base::ReadFileToString(file_path, &contents)) {
*firmware = ParseFirmware(contents);
}
}

Powered by Google App Engine
This is Rietveld 408576698