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

Unified Diff: chrome/installer/util/logging_installer.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/util/install_util_unittest.cc ('k') | chrome/installer/util/logging_installer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/installer/util/logging_installer.cc
diff --git a/chrome/installer/util/logging_installer.cc b/chrome/installer/util/logging_installer.cc
index 75f3bc9dbc191dbbb6344f151779c1212d5e1156..18a734ec759fe25602e7cafc842b2c2efade95c3 100644
--- a/chrome/installer/util/logging_installer.cc
+++ b/chrome/installer/util/logging_installer.cc
@@ -54,9 +54,8 @@ TruncateResult TruncateLogFileIfNeeded(const base::FilePath& log_file) {
&old_log_data[0],
kTruncatedInstallerLogFileSize);
if (bytes_read > 0 &&
- (bytes_read == file_util::WriteFile(log_file,
- &old_log_data[0],
- bytes_read) ||
+ (bytes_read == base::WriteFile(log_file, &old_log_data[0],
+ bytes_read) ||
base::PathExists(log_file))) {
result = LOGFILE_TRUNCATED;
}
« no previous file with comments | « chrome/installer/util/install_util_unittest.cc ('k') | chrome/installer/util/logging_installer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698