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

Unified Diff: chrome/browser/chromeos/login/user_image_manager_impl.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/browser/chromeos/login/user_image_manager_impl.cc
diff --git a/chrome/browser/chromeos/login/user_image_manager_impl.cc b/chrome/browser/chromeos/login/user_image_manager_impl.cc
index 5a022e3b4a223a44b762593046ce287418f6d3fd..15769eb4824db3e53c73e2af5c66d56da0defa31 100644
--- a/chrome/browser/chromeos/login/user_image_manager_impl.cc
+++ b/chrome/browser/chromeos/login/user_image_manager_impl.cc
@@ -172,9 +172,9 @@ bool SaveImage(const UserImage& user_image, const base::FilePath& image_path) {
}
if (!encoded_image->size() ||
- file_util::WriteFile(image_path,
- reinterpret_cast<const char*>(&(*encoded_image)[0]),
- encoded_image->size()) == -1) {
+ base::WriteFile(image_path,
+ reinterpret_cast<const char*>(&(*encoded_image)[0]),
+ encoded_image->size()) == -1) {
LOG(ERROR) << "Failed to save image to file.";
return false;
}
« no previous file with comments | « chrome/browser/chromeos/login/user_image_manager_browsertest.cc ('k') | chrome/browser/chromeos/login/wallpaper_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698