diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-15 20:18:09 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-15 20:18:09 +0000 |
commit | dcd16611096dcc5e7651763ff888135e0fb305fc (patch) | |
tree | fe1f69c236a92bd701bad04a6ccc1d30c08c6217 /base/nix | |
parent | 6dd1c54f48283e9c61b097b59feecf8d221e123b (diff) | |
download | chromium_src-dcd16611096dcc5e7651763ff888135e0fb305fc.zip chromium_src-dcd16611096dcc5e7651763ff888135e0fb305fc.tar.gz chromium_src-dcd16611096dcc5e7651763ff888135e0fb305fc.tar.bz2 |
Move PathIsWritable, DirectoryExists, ContentsEqual, and TextContentsEqual to the base namespace.
TBR=sky
Review URL: https://codereview.chromium.org/19052005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@211675 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/nix')
-rw-r--r-- | base/nix/mime_util_xdg.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/base/nix/mime_util_xdg.cc b/base/nix/mime_util_xdg.cc index 7c1d660..1a41394 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"); |