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

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

Issue 19052005: Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/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 c1c30009a13e268baa38b36f5b04b404b9f872cc..1d79a694f695bcb0005d25096474b92c29226861 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.cc
@@ -77,7 +77,7 @@ ash::WallpaperLayout GetLayoutEnum(const std::string& layout) {
bool SaveData(int key, const std::string& file_name, const std::string& data) {
base::FilePath data_dir;
CHECK(PathService::Get(key, &data_dir));
- if (!file_util::DirectoryExists(data_dir) &&
+ if (!base::DirectoryExists(data_dir) &&
!file_util::CreateDirectory(data_dir)) {
return false;
}
@@ -94,7 +94,7 @@ bool SaveData(int key, const std::string& file_name, const std::string& data) {
// expected that we may try to access file which did not saved yet.
bool GetData(const base::FilePath& path, std::string* data) {
base::FilePath data_dir = path.DirName();
- if (!file_util::DirectoryExists(data_dir) &&
+ if (!base::DirectoryExists(data_dir) &&
!file_util::CreateDirectory(data_dir))
return false;
@@ -893,7 +893,7 @@ void WallpaperPrivateGetOfflineWallpaperListFunction::GetList(
if (source == kOnlineSource) {
base::FilePath wallpaper_dir;
CHECK(PathService::Get(chrome::DIR_CHROMEOS_WALLPAPERS, &wallpaper_dir));
- if (file_util::DirectoryExists(wallpaper_dir)) {
+ if (base::DirectoryExists(wallpaper_dir)) {
base::FileEnumerator files(wallpaper_dir, false,
base::FileEnumerator::FILES);
for (base::FilePath current = files.Next(); !current.empty();

Powered by Google App Engine
This is Rietveld 408576698