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

Unified Diff: chrome/common/mac/mock_launchd.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
Index: chrome/common/mac/mock_launchd.cc
diff --git a/chrome/common/mac/mock_launchd.cc b/chrome/common/mac/mock_launchd.cc
index 63975fe8e01f10c7b78e8cee940a5e4ee9ae2493..10494a090c514fb873194b4f5648bc965b8bfaa0 100644
--- a/chrome/common/mac/mock_launchd.cc
+++ b/chrome/common/mac/mock_launchd.cc
@@ -42,7 +42,7 @@ bool MockLaunchd::MakeABundle(const base::FilePath& dst,
}
const char *data = "#! testbundle\n";
int len = strlen(data);
- if (file_util::WriteFile(*executable, data, len) != len) {
+ if (base::WriteFile(*executable, data, len) != len) {
return false;
}
if (chmod(executable->value().c_str(), 0555) != 0) {
@@ -77,7 +77,7 @@ bool MockLaunchd::MakeABundle(const base::FilePath& dst,
name.c_str(),
version_info.Version().c_str());
len = info_plist_data.length();
- if (file_util::WriteFile(info_plist, info_plist_data.c_str(), len) != len) {
+ if (base::WriteFile(info_plist, info_plist_data.c_str(), len) != len) {
return false;
}
const UInt8* bundle_root_path =
« no previous file with comments | « chrome/common/importer/firefox_importer_utils_unittest.cc ('k') | chrome/common/media_galleries/picasa_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698