Lines Matching refs:filename
119 base::FilePath filename; in GetKey() local
120 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); in GetKey()
121 if (!base::ReadFileToString(filename, value)) { in GetKey()
129 base::FilePath filename; in SetKey() local
130 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); in SetKey()
131 if (!base::DirectoryExists(filename.DirName())) { in SetKey()
134 TEST_AND_RETURN_FALSE(base::CreateDirectory(filename.DirName())); in SetKey()
136 TEST_AND_RETURN_FALSE(base::WriteFile(filename, value.data(), value.size()) == in SetKey()
142 base::FilePath filename; in KeyExists() local
143 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); in KeyExists()
144 return base::PathExists(filename); in KeyExists()
148 base::FilePath filename; in DeleteKey() local
149 TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); in DeleteKey()
150 TEST_AND_RETURN_FALSE(base::DeleteFile(filename, false)); in DeleteKey()
155 base::FilePath* filename) const { in GetFileNameForKey()
163 *filename = prefs_dir_.Append(key); in GetFileNameForKey()