| 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;
|
|
|