Index: prefs.cc |
diff --git a/prefs.cc b/prefs.cc |
index bdd620b79078a8d6025e62d1a9a97ccf8c5ffbbe..223fc9b7a63bf90864826090d3959a5c707e6fba 100644 |
--- a/prefs.cc |
+++ b/prefs.cc |
@@ -35,7 +35,11 @@ bool Prefs::Init(const FilePath& prefs_dir) { |
bool Prefs::GetString(const string& key, string* value) { |
FilePath filename; |
TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename)); |
- TEST_AND_RETURN_FALSE(file_util::ReadFileToString(filename, value)); |
+ if (!file_util::ReadFileToString(filename, value)) { |
+ PLOG(INFO) << "Unable to read prefs from " << filename.value() |
+ << ". This is likely harmless."; |
+ return false; |
+ } |
return true; |
} |