Home | History | Annotate | Download | only in extensions

Lines Matching defs:file_name

66 // Saves |data| as |file_name| to directory with |key|. Return false if the
68 bool SaveData(int key, const std::string& file_name, const std::string& data) {
75 base::FilePath file_path = data_dir.Append(file_name);
81 // Gets |file_name| from directory with |key|. Return false if the directory can
82 // not be found or failed to read file to string |data|. Note if the |file_name|
312 std::string file_name = GURL(params->url).ExtractFileName();
315 fallback_path = wallpaper_path.Append(file_name);
318 file_name = base::FilePath(file_name).InsertBeforeExtension(
321 wallpaper_path = wallpaper_path.Append(file_name);
442 std::string file_name = GURL(params->url).ExtractFileName();
443 if (SaveData(chrome::DIR_CHROMEOS_WALLPAPERS, file_name, params->wallpaper)) {
458 file_name).InsertBeforeExtension(chromeos::kSmallWallpaperSuffix);
472 "Failed to create/write wallpaper to %s.", file_name.c_str());
570 chromeos::kThumbnailWallpaperSubDir, user_id_hash_, params->file_name);
586 params->file_name,
720 std::string file_name = GURL(params->url_or_file).ExtractFileName();
723 thumbnail_path = thumbnail_path.Append(file_name);
752 const std::string& file_name) {
754 file_name.c_str()));
818 const std::string& file_name) {
820 file_name.c_str()));
829 const std::string& file_name) {
832 if (SaveData(chrome::DIR_CHROMEOS_WALLPAPER_THUMBNAILS, file_name, data)) {
840 this, file_name));
877 std::string file_name = current.BaseName().RemoveExtension().value();
879 if (!EndsWith(file_name, chromeos::kSmallWallpaperSuffix, true))