Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(154)

Unified Diff: prefs.cc

Issue 4131005: AU: Push seeks in http fetching to the progress percentage. (Closed) Base URL: http://git.chromium.org/git/update_engine.git
Patch Set: fix for review Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « multi_http_fetcher.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « multi_http_fetcher.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698