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

Unified Diff: chrome/common/auto_start_linux.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: chrome/common/auto_start_linux.cc
diff --git a/chrome/common/auto_start_linux.cc b/chrome/common/auto_start_linux.cc
index c9c3fcc9d19005c615dde655375103eb6bececf9..42d02a06595a0c7c2a2176b824d78f0c1a9e1a1a 100644
--- a/chrome/common/auto_start_linux.cc
+++ b/chrome/common/auto_start_linux.cc
@@ -47,8 +47,8 @@ bool AutoStart::AddApplication(const std::string& autostart_filename,
"Exec=" + command_line + "\n"
"Name=" + application_name + "\n";
std::string::size_type content_length = autostart_file_contents.length();
- if (file_util::WriteFile(autostart_file, autostart_file_contents.c_str(),
- content_length) !=
+ if (base::WriteFile(autostart_file, autostart_file_contents.c_str(),
+ content_length) !=
static_cast<int>(content_length)) {
base::DeleteFile(autostart_file, false);
return false;

Powered by Google App Engine
This is Rietveld 408576698