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

Unified Diff: prefs.cc

Issue 3521016: AU: Start checkpointing update progress. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/update_engine.git
Patch Set: address review comments 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 | « omaha_response_handler_action_unittest.cc ('k') | prefs_interface.h » ('j') | 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 585408cefcb032e4e217a7a547afb4241e0650b6..2de7eea030eddf5f687eaf7b51a7a663f7179635 100644
--- a/prefs.cc
+++ b/prefs.cc
@@ -18,6 +18,12 @@ namespace chromeos_update_engine {
const char kPrefsDeltaUpdateFailures[] = "delta-update-failures";
const char kPrefsLastActivePingDay[] = "last-active-ping-day";
const char kPrefsLastRollCallPingDay[] = "last-roll-call-ping-day";
+const char kPrefsManifestMetadataSize[] = "manifest-metadata-size";
+const char kPrefsUpdateCheckResponseHash[] = "update-check-response-hash";
+const char kPrefsUpdateStateNextDataOffset[] = "update-state-next-data-offset";
+const char kPrefsUpdateStateNextOperation[] = "update-state-next-operation";
+const char kPrefsUpdateStateSignedSHA256Context[] =
+ "update-state-signed-sha-256-context";
bool Prefs::Init(const FilePath& prefs_dir) {
prefs_dir_ = prefs_dir;
@@ -25,16 +31,13 @@ bool Prefs::Init(const FilePath& prefs_dir) {
}
bool Prefs::GetString(const string& key, string* value) {
- LOG(INFO) << "Getting key \"" << key << "\"";
FilePath filename;
TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename));
TEST_AND_RETURN_FALSE(file_util::ReadFileToString(filename, value));
- LOG(INFO) << "Key \"" << key << "\" value \"" << *value << "\"";
return true;
}
bool Prefs::SetString(const std::string& key, const std::string& value) {
- LOG(INFO) << "Setting key \"" << key << "\" value \"" << value << "\"";
FilePath filename;
TEST_AND_RETURN_FALSE(GetFileNameForKey(key, &filename));
TEST_AND_RETURN_FALSE(file_util::CreateDirectory(filename.DirName()));
« no previous file with comments | « omaha_response_handler_action_unittest.cc ('k') | prefs_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698