Lines Matching refs:base
51 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetInt64()
52 TEST_AND_RETURN_FALSE(base::StringToInt64(str_value, value)); in GetInt64()
57 return SetString(key, base::Int64ToString(value)); in SetInt64()
64 base::TrimWhitespaceASCII(str_value, base::TRIM_ALL, &str_value); in GetBoolean()
109 bool Prefs::Init(const base::FilePath& prefs_dir) { in Init()
113 bool Prefs::FileStorage::Init(const base::FilePath& prefs_dir) { in Init()
119 base::FilePath filename; in GetKey()
121 if (!base::ReadFileToString(filename, value)) { in GetKey()
129 base::FilePath 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()
144 return base::PathExists(filename); in KeyExists()
148 base::FilePath filename; in DeleteKey()
150 TEST_AND_RETURN_FALSE(base::DeleteFile(filename, false)); in DeleteKey()
155 base::FilePath* filename) const { in GetFileNameForKey()
160 TEST_AND_RETURN_FALSE(base::IsAsciiAlpha(c) || base::IsAsciiDigit(c) || in GetFileNameForKey()