Home | History | Annotate | Download | only in base

Lines Matching defs:dir

372   std::string dir;
374 TrimWhitespaceASCII(dirs.substr(pos, epos - pos), TRIM_ALL, &dir);
375 if (dir.length() == 0) {
379 subdirs_[dir] = num++;
382 TrimWhitespaceASCII(dirs.substr(pos), TRIM_ALL, &dir);
383 if (dir.length() == 0) {
387 subdirs_[dir] = num++;
392 // Make sure |dir| exists and add it to the list of icon directories.
393 void TryAddIconDir(const FilePath& dir) {
394 if (!file_util::DirectoryExists(dir))
396 (*MimeUtilConstants::GetInstance()->icon_dirs_)[dir] = 0;
399 // For a xdg directory |dir|, add the appropriate icon sub-directories.
400 void AddXDGDataDir(const FilePath& dir) {
401 if (!file_util::DirectoryExists(dir))
403 TryAddIconDir(dir.Append("icons"));
404 TryAddIconDir(dir.Append("pixmaps"));