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

Unified Diff: omaha_response_handler_action.h

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_hash_calculator_unittest.cc ('k') | omaha_response_handler_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_response_handler_action.h
diff --git a/omaha_response_handler_action.h b/omaha_response_handler_action.h
index b5feabdecd51b215171e3dd3a407d3752e72cf1f..2845df589cab8a8584783c36befab40d3a06cba7 100644
--- a/omaha_response_handler_action.h
+++ b/omaha_response_handler_action.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -16,6 +16,7 @@
namespace chromeos_update_engine {
class OmahaResponseHandlerAction;
+class PrefsInterface;
template<>
class ActionTraits<OmahaResponseHandlerAction> {
@@ -26,7 +27,9 @@ class ActionTraits<OmahaResponseHandlerAction> {
class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
public:
- OmahaResponseHandlerAction() : got_no_update_response_(false) {}
+ OmahaResponseHandlerAction(PrefsInterface* prefs)
+ : prefs_(prefs),
+ got_no_update_response_(false) {}
typedef ActionTraits<OmahaResponseHandlerAction>::InputObjectType
InputObjectType;
typedef ActionTraits<OmahaResponseHandlerAction>::OutputObjectType
@@ -57,6 +60,9 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
static bool GetInstallDev(const std::string& boot_dev,
std::string* install_dev);
+ // Update Engine preference store.
+ PrefsInterface* prefs_;
+
// set to non-empty in unit tests
std::string boot_device_;
« no previous file with comments | « omaha_hash_calculator_unittest.cc ('k') | omaha_response_handler_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698