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 /cloud_print/service/win | |
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 'cloud_print/service/win')
-rw-r--r-- | cloud_print/service/win/chrome_launcher.cc | 6 | ||||
-rw-r--r-- | cloud_print/service/win/cloud_print_service.cc | 2 | ||||
-rw-r--r-- | cloud_print/service/win/cloud_print_service_config.cc | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/cloud_print/service/win/chrome_launcher.cc b/cloud_print/service/win/chrome_launcher.cc index f6b863e..f0cac5e 100644 --- a/cloud_print/service/win/chrome_launcher.cc +++ b/cloud_print/service/win/chrome_launcher.cc @@ -292,9 +292,9 @@ std::string ChromeLauncher::CreateServiceStateFile( printer_list.AppendStrings(printers); std::string printers_json; base::JSONWriter::Write(&printer_list, &printers_json); - size_t written = file_util::WriteFile(printers_file, - printers_json.c_str(), - printers_json.size()); + size_t written = base::WriteFile(printers_file, + printers_json.c_str(), + printers_json.size()); if (written != printers_json.size()) { LOG(ERROR) << "Can't write file."; return result; diff --git a/cloud_print/service/win/cloud_print_service.cc b/cloud_print/service/win/cloud_print_service.cc index e0998f0c..6f58095 100644 --- a/cloud_print/service/win/cloud_print_service.cc +++ b/cloud_print/service/win/cloud_print_service.cc @@ -351,7 +351,7 @@ class CloudPrintServiceModule } if (new_contents != contents) { - size_t written = file_util::WriteFile(file, new_contents.c_str(), + size_t written = base::WriteFile(file, new_contents.c_str(), new_contents.size()); if (written != new_contents.size()) { return ReportError(cloud_print::GetLastHResult(), diff --git a/cloud_print/service/win/cloud_print_service_config.cc b/cloud_print/service/win/cloud_print_service_config.cc index 9556826..70f50c7 100644 --- a/cloud_print/service/win/cloud_print_service_config.cc +++ b/cloud_print/service/win/cloud_print_service_config.cc @@ -389,7 +389,7 @@ void SetupDialog::Install(const base::string16& user, if (contents.empty()) return ShowError(IDS_ERROR_FAILED_CREATE_CONFIG); - size_t written = file_util::WriteFile(file, contents.c_str(), + size_t written = base::WriteFile(file, contents.c_str(), contents.size()); if (written != contents.size()) { DWORD last_error = GetLastError(); |