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

Unified Diff: src/platform/update_engine/omaha_response_handler_action.h

Issue 492008: AU: Try delta updates first, then full updates (Closed)
Patch Set: use mkstemp Created 11 years 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
Index: src/platform/update_engine/omaha_response_handler_action.h
diff --git a/src/platform/update_engine/omaha_response_handler_action.h b/src/platform/update_engine/omaha_response_handler_action.h
index e25de2898c60a827fa61b7d70b11388d4183eb57..b56d343b3aecf2fe58f36fac6ccbfbfde7c6e08a 100644
--- a/src/platform/update_engine/omaha_response_handler_action.h
+++ b/src/platform/update_engine/omaha_response_handler_action.h
@@ -26,7 +26,7 @@ class ActionTraits<OmahaResponseHandlerAction> {
class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
public:
- OmahaResponseHandlerAction() {}
+ OmahaResponseHandlerAction() : got_no_update_response_(false) {}
typedef ActionTraits<OmahaResponseHandlerAction>::InputObjectType
InputObjectType;
typedef ActionTraits<OmahaResponseHandlerAction>::OutputObjectType
@@ -41,6 +41,8 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
void set_boot_device(const std::string& boot_device) {
boot_device_ = boot_device;
}
+
+ bool GotNoUpdateResponse() const { return got_no_update_response_; }
// Debugging/logging
static std::string StaticType() { return "OmahaResponseHandlerAction"; }
@@ -56,6 +58,9 @@ class OmahaResponseHandlerAction : public Action<OmahaResponseHandlerAction> {
// set to non-empty in unit tests
std::string boot_device_;
+
+ // True only if we got a response and the response said no updates
+ bool got_no_update_response_;
DISALLOW_COPY_AND_ASSIGN(OmahaResponseHandlerAction);
};
« no previous file with comments | « src/platform/update_engine/omaha_request_prep_action.cc ('k') | src/platform/update_engine/omaha_response_handler_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698