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

Unified Diff: base/nix/mime_util_xdg.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
« no previous file with comments | « base/native_library_mac.mm ('k') | base/prefs/json_pref_store_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/nix/mime_util_xdg.cc
diff --git a/base/nix/mime_util_xdg.cc b/base/nix/mime_util_xdg.cc
index 7c1d66049975710684c9483cb4ce9abee4e0a1da..1a41394fc158c1c33970d3bf8ddfd436188e32d8 100644
--- a/base/nix/mime_util_xdg.cc
+++ b/base/nix/mime_util_xdg.cc
@@ -168,7 +168,7 @@ IconTheme::IconTheme(const std::string& name)
&MimeUtilConstants::GetInstance()->icon_dirs_;
for (iter = icon_dirs->begin(); iter != icon_dirs->end(); ++iter) {
theme_path = iter->first.Append(name);
- if (!file_util::DirectoryExists(theme_path))
+ if (!DirectoryExists(theme_path))
continue;
FilePath theme_index = theme_path.Append("index.theme");
if (!index_theme_loaded_ && PathExists(theme_index)) {
@@ -387,7 +387,7 @@ bool IconTheme::SetDirectories(const std::string& dirs) {
bool CheckDirExistsAndGetMtime(const FilePath& dir,
base::Time* last_modified) {
- if (!file_util::DirectoryExists(dir))
+ if (!DirectoryExists(dir))
return false;
base::PlatformFileInfo file_info;
if (!file_util::GetFileInfo(dir, &file_info))
@@ -406,7 +406,7 @@ void TryAddIconDir(const FilePath& dir) {
// For a xdg directory |dir|, add the appropriate icon sub-directories.
void AddXDGDataDir(const FilePath& dir) {
- if (!file_util::DirectoryExists(dir))
+ if (!DirectoryExists(dir))
return;
TryAddIconDir(dir.Append("icons"));
TryAddIconDir(dir.Append("pixmaps"));
@@ -418,7 +418,7 @@ void InitIconDir() {
if (!home.empty()) {
FilePath legacy_data_dir(home);
legacy_data_dir = legacy_data_dir.AppendASCII(".icons");
- if (file_util::DirectoryExists(legacy_data_dir))
+ if (DirectoryExists(legacy_data_dir))
TryAddIconDir(legacy_data_dir);
}
const char* env = getenv("XDG_DATA_HOME");
« no previous file with comments | « base/native_library_mac.mm ('k') | base/prefs/json_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698