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

Unified Diff: chrome/installer/test/alternate_version_generator.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
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/util/install_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/test/alternate_version_generator.cc
diff --git a/chrome/installer/test/alternate_version_generator.cc b/chrome/installer/test/alternate_version_generator.cc
index aaeb3c2fc8d52628a9ef3f2f88aa8e76a7bdfe89..774ee4f9ea0c29828e4ce2f012578d1f35e46017 100644
--- a/chrome/installer/test/alternate_version_generator.cc
+++ b/chrome/installer/test/alternate_version_generator.cc
@@ -543,9 +543,9 @@ bool GenerateAlternateVersion(const base::FilePath& original_installer_path,
if (!resource_loader.Load(&kSetupEx_[0], &kBl[0], &resource_data))
return false;
int written =
- file_util::WriteFile(setup_ex_,
- reinterpret_cast<const char*>(resource_data.first),
- static_cast<int>(resource_data.second));
+ base::WriteFile(setup_ex_,
+ reinterpret_cast<const char*>(resource_data.first),
+ static_cast<int>(resource_data.second));
if (written != resource_data.second) {
LOG(DFATAL) << "Failed writing \"" << setup_ex_.value() << "\"";
return false;
@@ -555,9 +555,9 @@ bool GenerateAlternateVersion(const base::FilePath& original_installer_path,
if (!resource_loader.Load(&kChromePacked7z[0], &kB7[0], &resource_data))
return false;
written =
- file_util::WriteFile(chrome_packed_7z,
- reinterpret_cast<const char*>(resource_data.first),
- static_cast<int>(resource_data.second));
+ base::WriteFile(chrome_packed_7z,
+ reinterpret_cast<const char*>(resource_data.first),
+ static_cast<int>(resource_data.second));
if (written != resource_data.second) {
LOG(DFATAL) << "Failed writing \"" << chrome_packed_7z.value() << "\"";
return false;
« no previous file with comments | « chrome/installer/setup/setup_util_unittest.cc ('k') | chrome/installer/util/install_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698