diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 18:23:50 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-08-30 18:23:50 +0000 |
commit | 82f84b91a10f513cd59b8382a7ab00ed0f179bd5 (patch) | |
tree | 125081aff715fbe6815e8bb81889d4d49f887cf3 /chrome/common/importer | |
parent | 88a8115978d75161674d97cde0761cbdba73daed (diff) | |
download | chromium_src-82f84b91a10f513cd59b8382a7ab00ed0f179bd5.zip chromium_src-82f84b91a10f513cd59b8382a7ab00ed0f179bd5.tar.gz chromium_src-82f84b91a10f513cd59b8382a7ab00ed0f179bd5.tar.bz2 |
Move ReadFileToString to the base namespace.
BUG=
Review URL: https://codereview.chromium.org/19579005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@220612 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/importer')
-rw-r--r-- | chrome/common/importer/firefox_importer_utils.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/common/importer/firefox_importer_utils.cc b/chrome/common/importer/firefox_importer_utils.cc index 44d7dbc..183df76 100644 --- a/chrome/common/importer/firefox_importer_utils.cc +++ b/chrome/common/importer/firefox_importer_utils.cc @@ -59,7 +59,7 @@ bool IsDefaultProfile(const DictionaryValue& root, base::FilePath GetFirefoxProfilePath() { base::FilePath ini_file = GetProfilesINI(); std::string content; - file_util::ReadFileToString(ini_file, &content); + base::ReadFileToString(ini_file, &content); base::DictionaryValueINIParser ini_parser; ini_parser.Parse(content); return GetFirefoxProfilePathFromDictionary(ini_parser.root()); @@ -100,7 +100,7 @@ bool GetFirefoxVersionAndPathFromProfile(const base::FilePath& profile_path, base::FilePath compatibility_file = profile_path.AppendASCII("compatibility.ini"); std::string content; - file_util::ReadFileToString(compatibility_file, &content); + base::ReadFileToString(compatibility_file, &content); ReplaceSubstringsAfterOffset(&content, 0, "\r\n", "\n"); std::vector<std::string> lines; base::SplitString(content, '\n', &lines); @@ -132,7 +132,7 @@ bool ReadPrefFile(const base::FilePath& path, std::string* content) { if (content == NULL) return false; - file_util::ReadFileToString(path, content); + base::ReadFileToString(path, content); if (content->empty()) { LOG(WARNING) << "Firefox preference file " << path.value() << " is empty."; @@ -259,7 +259,7 @@ string16 GetFirefoxImporterName(const base::FilePath& app_path) { std::string branding_name; if (base::PathExists(app_ini_file)) { std::string content; - file_util::ReadFileToString(app_ini_file, &content); + base::ReadFileToString(app_ini_file, &content); std::vector<std::string> lines; base::SplitString(content, '\n', &lines); const std::string name_attr("Name="); |