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

Unified Diff: omaha_request_action.h

Issue 6677146: AU: OmahaRequestAction: allow to be skipped. (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: fix include "" vs <> Created 9 years, 9 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 | « mock_http_fetcher.cc ('k') | omaha_request_action.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_action.h
diff --git a/omaha_request_action.h b/omaha_request_action.h
index 948bcc7f4282fd2b8e9551decb05390c5e95d7cb..8749546b00465aaf94e7a3f9ae2973099f43e56e 100644
--- a/omaha_request_action.h
+++ b/omaha_request_action.h
@@ -150,6 +150,8 @@ class OmahaRequestAction : public Action<OmahaRequestAction>,
// Returns true if this is an Event request, false if it's an UpdateCheck.
bool IsEvent() const { return event_.get() != NULL; }
+ void set_should_skip(bool should_skip) { should_skip_ = should_skip; }
+
private:
// If this is an update check request, initializes
// |ping_active_days_| and |ping_roll_call_days_| to values that may
@@ -181,6 +183,9 @@ class OmahaRequestAction : public Action<OmahaRequestAction>,
int ping_active_days_;
int ping_roll_call_days_;
+ // If true, this action should be a noop.
+ bool should_skip_;
+
DISALLOW_COPY_AND_ASSIGN(OmahaRequestAction);
};
« no previous file with comments | « mock_http_fetcher.cc ('k') | omaha_request_action.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698