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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.cc

Issue 100573002: Move directory creation functions to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/extensions/wallpaper_private_api.cc
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
index 7dac1718c8b0af6a99b6ff8f099c70fb45664105..f58be4ce7e4413bb9db225b934917bfe46223861 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -66,7 +66,7 @@ bool SaveData(int key, const std::string& file_name, const std::string& data) {
base::FilePath data_dir;
CHECK(PathService::Get(key, &data_dir));
if (!base::DirectoryExists(data_dir) &&
- !file_util::CreateDirectory(data_dir)) {
+ !base::CreateDirectory(data_dir)) {
return false;
}
base::FilePath file_path = data_dir.Append(file_name);
@@ -83,7 +83,7 @@ bool SaveData(int key, const std::string& file_name, const std::string& data) {
bool GetData(const base::FilePath& path, std::string* data) {
base::FilePath data_dir = path.DirName();
if (!base::DirectoryExists(data_dir) &&
- !file_util::CreateDirectory(data_dir))
+ !base::CreateDirectory(data_dir))
return false;
return !base::PathExists(path) ||
@@ -573,7 +573,7 @@ void WallpaperPrivateSetCustomWallpaperFunction::GenerateThumbnail(
sequence_token_));
chromeos::UserImage wallpaper(*image.get());
if (!base::PathExists(thumbnail_path.DirName()))
- file_util::CreateDirectory(thumbnail_path.DirName());
+ base::CreateDirectory(thumbnail_path.DirName());
scoped_refptr<base::RefCountedBytes> data;
chromeos::WallpaperManager::Get()->ResizeWallpaper(

Powered by Google App Engine
This is Rietveld 408576698