summaryrefslogtreecommitdiffstats
path: root/cloud_print
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-30 18:23:50 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-30 18:23:50 +0000
commit82f84b91a10f513cd59b8382a7ab00ed0f179bd5 (patch)
tree125081aff715fbe6815e8bb81889d4d49f887cf3 /cloud_print
parent88a8115978d75161674d97cde0761cbdba73daed (diff)
downloadchromium_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 'cloud_print')
-rw-r--r--cloud_print/gcp20/prototype/printer_state.cc2
-rw-r--r--cloud_print/service/win/chrome_launcher.cc2
-rw-r--r--cloud_print/service/win/cloud_print_service.cc2
-rw-r--r--cloud_print/service/win/cloud_print_service_config.cc2
4 files changed, 4 insertions, 4 deletions
diff --git a/cloud_print/gcp20/prototype/printer_state.cc b/cloud_print/gcp20/prototype/printer_state.cc
index 78dbaa9..cf1891d 100644
--- a/cloud_print/gcp20/prototype/printer_state.cc
+++ b/cloud_print/gcp20/prototype/printer_state.cc
@@ -75,7 +75,7 @@ bool SaveToFile(const base::FilePath& path, const PrinterState& state) {
bool LoadFromFile(const base::FilePath& path, PrinterState* state) {
std::string json_str;
- if (!file_util::ReadFileToString(path, &json_str)) {
+ if (!base::ReadFileToString(path, &json_str)) {
LOG(ERROR) << "Cannot open file.";
return false;
}
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc
index 6e3366a..51501df 100644
--- a/cloud_print/service/win/chrome_launcher.cc
+++ b/cloud_print/service/win/chrome_launcher.cc
@@ -115,7 +115,7 @@ std::string ReadAndUpdateServiceState(const base::FilePath& directory,
const std::string& proxy_id) {
std::string json;
base::FilePath file_path = directory.Append(chrome::kServiceStateFileName);
- if (!file_util::ReadFileToString(file_path, &json)) {
+ if (!base::ReadFileToString(file_path, &json)) {
return std::string();
}
diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc
index c6254c0..058cf54 100644
--- a/cloud_print/service/win/cloud_print_service.cc
+++ b/cloud_print/service/win/cloud_print_service.cc
@@ -330,7 +330,7 @@ class CloudPrintServiceModule
std::string contents;
ServiceState service_state;
- bool is_valid = file_util::ReadFileToString(file, &contents) &&
+ bool is_valid = base::ReadFileToString(file, &contents) &&
service_state.FromString(contents);
std::string proxy_id = service_state.proxy_id();
diff --git a/cloud_print/service/win/cloud_print_service_config.cc b/cloud_print/service/win/cloud_print_service_config.cc
index bad7111..ce31e19 100644
--- a/cloud_print/service/win/cloud_print_service_config.cc
+++ b/cloud_print/service/win/cloud_print_service_config.cc
@@ -372,7 +372,7 @@ void SetupDialog::Install(const string16& user, const string16& password,
std::string proxy_id;
std::string contents;
- if (file_util::ReadFileToString(file, &contents)) {
+ if (base::ReadFileToString(file, &contents)) {
ServiceState service_state;
if (service_state.FromString(contents))
proxy_id = service_state.proxy_id();