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

Unified Diff: update_attempter.h

Issue 6836025: Add support to update_engine to poke Omaha after an update has been applied (Closed) Base URL: http://git.chromium.org/git/update_engine.git@master
Patch Set: Fixed bug where last ping day was not properly updated Created 9 years, 8 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
Index: update_attempter.h
diff --git a/update_attempter.h b/update_attempter.h
index e41cab920c058a485e54cec53a086cbf6ecfe541..c4235e971de2aef1ccf72d0baf60fbade0e3f0cc 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -123,6 +123,7 @@ class UpdateAttempter : public ActionProcessorDelegate,
FRIEND_TEST(UpdateAttempterTest, ScheduleErrorEventActionNoEventTest);
FRIEND_TEST(UpdateAttempterTest, ScheduleErrorEventActionTest);
FRIEND_TEST(UpdateAttempterTest, UpdateTest);
+ FRIEND_TEST(UpdateAttempterTest, PingOmahaTest);
// Sets the status to the given status and notifies a status update
// over dbus.
@@ -175,6 +176,13 @@ class UpdateAttempter : public ActionProcessorDelegate,
reinterpret_cast<ProxyResolver*>(&direct_proxy_resolver_);
}
+ // Sends a ping to Omaha.
+ // This is used after an update has been applied and we're waiting for the
+ // user to reboot. This ping helps keep the number of actives count
+ // accurate in case a user takes a long time to reboot the device after an
+ // update has been applied.
+ void PingOmaha();
+
// Last status notification timestamp used for throttling. Use monotonic
// TimeTicks to ensure that notifications are sent even if the system clock is
// set back in the middle of an update.

Powered by Google App Engine
This is Rietveld 408576698