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

Unified Diff: omaha_request_action.cc

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 | « omaha_request_action.h ('k') | omaha_request_action_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: omaha_request_action.cc
diff --git a/omaha_request_action.cc b/omaha_request_action.cc
index 4c77ce02019aa2eec0a5a0c2dbc744865e1dbcc0..a02387ebf5af08f1fca2d70dda1e7355a2d1dc83 100644
--- a/omaha_request_action.cc
+++ b/omaha_request_action.cc
@@ -179,7 +179,8 @@ OmahaRequestAction::OmahaRequestAction(PrefsInterface* prefs,
event_(event),
http_fetcher_(http_fetcher),
ping_active_days_(0),
- ping_roll_call_days_(0) {}
+ ping_roll_call_days_(0),
+ should_skip_(false) {}
OmahaRequestAction::~OmahaRequestAction() {}
@@ -216,6 +217,10 @@ void OmahaRequestAction::InitPingDays() {
}
void OmahaRequestAction::PerformAction() {
+ if (should_skip_) {
+ processor_->ActionComplete(this, kActionCodeSuccess);
+ return;
+ }
http_fetcher_->set_delegate(this);
InitPingDays();
string request_post(FormatRequest(event_.get(),
« no previous file with comments | « omaha_request_action.h ('k') | omaha_request_action_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698