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

Unified Diff: chrome/test/base/ui_test_utils.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/service/cloud_print/printer_job_handler.cc ('k') | chrome/test/chromedriver/chrome/zip_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/base/ui_test_utils.cc
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc
index 02cab8445a37401ad28d75cabf79c99d42a7153e..e682a43880679c106f41a8e8a59047e5e8dc5045 100644
--- a/chrome/test/base/ui_test_utils.cc
+++ b/chrome/test/base/ui_test_utils.cc
@@ -487,7 +487,7 @@ bool SaveScreenSnapshotToDirectory(const base::FilePath& directory,
if (ui::GrabDesktopSnapshot(bounds, &png_data) &&
png_data.size() <= INT_MAX) {
int bytes = static_cast<int>(png_data.size());
- int written = file_util::WriteFile(
+ int written = base::WriteFile(
out_path, reinterpret_cast<char*>(&png_data[0]), bytes);
succeeded = (written == bytes);
}
« no previous file with comments | « chrome/service/cloud_print/printer_job_handler.cc ('k') | chrome/test/chromedriver/chrome/zip_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698