diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-06 20:42:30 +0000 |
commit | e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e (patch) | |
tree | 480bf91e3cf64d69f837a2f22f8fc868bf17dfdc /chrome/common/auto_start_linux.cc | |
parent | 06b1d42b0ceadd4a70b7462c5c7e6adeb5a18ca4 (diff) | |
download | chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.zip chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.gz chromium_src-e5c2a22eb106e0fef92bbf80ac8bf2429980cc4e.tar.bz2 |
Move WriteFile and WriteFileDescriptor from file_util to base namespace.
R=viettrungluu@chromium.org
TBR=viettrungluu
Review URL: https://codereview.chromium.org/184563006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255418 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/auto_start_linux.cc')
-rw-r--r-- | chrome/common/auto_start_linux.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/common/auto_start_linux.cc b/chrome/common/auto_start_linux.cc index c9c3fcc..42d02a0 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; |