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

Unified Diff: cloud_print/gcp20/prototype/print_job_handler.cc

Issue 184563006: Move WriteFile and WriteFileDescriptor from file_util to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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
« no previous file with comments | « chromeos/process_proxy/process_proxy.cc ('k') | cloud_print/gcp20/prototype/printer_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cloud_print/gcp20/prototype/print_job_handler.cc
diff --git a/cloud_print/gcp20/prototype/print_job_handler.cc b/cloud_print/gcp20/prototype/print_job_handler.cc
index 48ba76ec85b4b7a484bbefc950c95657c9516462..e2752661b6879de86c5a40d0992601d8c4fd7014 100644
--- a/cloud_print/gcp20/prototype/print_job_handler.cc
+++ b/cloud_print/gcp20/prototype/print_job_handler.cc
@@ -235,15 +235,15 @@ bool PrintJobHandler::SavePrintJob(const std::string& content,
return false;
}
- int written = file_util::WriteFile(directory.AppendASCII("ticket.xml"),
- ticket.data(),
- static_cast<int>(ticket.size()));
+ int written = base::WriteFile(directory.AppendASCII("ticket.xml"),
+ ticket.data(),
+ static_cast<int>(ticket.size()));
if (static_cast<size_t>(written) != ticket.size()) {
LOG(WARNING) << "Cannot save ticket.";
return false;
}
- written = file_util::WriteFile(
+ written = base::WriteFile(
directory.AppendASCII("data." + file_extension),
content.data(), static_cast<int>(content.size()));
if (static_cast<size_t>(written) != content.size()) {
« no previous file with comments | « chromeos/process_proxy/process_proxy.cc ('k') | cloud_print/gcp20/prototype/printer_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698