AU: Only retry HTTP connect failures when updating in background.
Interactive updates (those that come from dbus, rather than a timer)
will have the check for updates retry on failed HTTP connections only
once. We will still retry on connect failures for background updates 3
times, which is important for the case where a user has just woken
from sleep.
BUG=chromium-os:16255
TEST=unittests, on device test
Change-Id: I9cb0f854856846850cfdeaa4ffbe921d76eee15b
Reviewed-on: http://gerrit.chromium.org/gerrit/2449
Tested-by: Andrew de los Reyes <adlr@chromium.org>
Reviewed-by: Darin Petkov <petkov@chromium.org>
diff --git a/update_attempter_unittest.cc b/update_attempter_unittest.cc
index 8b7be1a..4059957 100644
--- a/update_attempter_unittest.cc
+++ b/update_attempter_unittest.cc
@@ -284,7 +284,7 @@
}
EXPECT_CALL(*processor_, StartProcessing()).Times(1);
- attempter_.Update("", "", false);
+ attempter_.Update("", "", false, false);
g_idle_add(&StaticUpdateTestVerify, this);
}