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

Unified Diff: chromeos/process_proxy/process_proxy.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
Index: chromeos/process_proxy/process_proxy.cc
diff --git a/chromeos/process_proxy/process_proxy.cc b/chromeos/process_proxy/process_proxy.cc
index 3ae1d2133115446647274884159db13fd1ef1e07..5aa373f0c0c1c37b1a2cf97823f2b2bd4b99d109 100644
--- a/chromeos/process_proxy/process_proxy.cc
+++ b/chromeos/process_proxy/process_proxy.cc
@@ -132,8 +132,8 @@ bool ProcessProxy::StopWatching() {
// Signal Watcher that we are done. We use self-pipe trick to unblock watcher.
// Anything may be written to the pipe.
const char message[] = "q";
- return file_util::WriteFileDescriptor(shutdown_pipe_[PIPE_END_WRITE],
- message, sizeof(message));
+ return base::WriteFileDescriptor(shutdown_pipe_[PIPE_END_WRITE],
+ message, sizeof(message));
}
void ProcessProxy::Close() {
@@ -160,8 +160,8 @@ bool ProcessProxy::Write(const std::string& text) {
// We don't want to write '\0' to the pipe.
size_t data_size = text.length() * sizeof(*text.c_str());
int bytes_written =
- file_util::WriteFileDescriptor(pt_pair_[PT_MASTER_FD],
- text.c_str(), data_size);
+ base::WriteFileDescriptor(pt_pair_[PT_MASTER_FD],
+ text.c_str(), data_size);
return (bytes_written == static_cast<int>(data_size));
}
« no previous file with comments | « chromeos/process_proxy/process_output_watcher_unittest.cc ('k') | cloud_print/gcp20/prototype/print_job_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698