diff options
Diffstat (limited to 'cloud_print')
-rw-r--r-- | cloud_print/gcp20/prototype/printer_state.cc | 2 | ||||
-rw-r--r-- | cloud_print/service/win/chrome_launcher.cc | 2 | ||||
-rw-r--r-- | cloud_print/service/win/cloud_print_service.cc | 2 | ||||
-rw-r--r-- | cloud_print/service/win/cloud_print_service_config.cc | 2 |
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(); |