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.h b/update_attempter.h
index f4b82ff..33e97c5 100644
--- a/update_attempter.h
+++ b/update_attempter.h
@@ -59,9 +59,11 @@
   // |in_update_url| prevents automatic detection of the parameter.
   // If |obey_proxies| is true, the update will likely respect Chrome's
   // proxy setting. For security reasons, we may still not honor them.
+  // Interactive should be true if this was called from the user (ie dbus).
   virtual void Update(const std::string& app_version,
                       const std::string& omaha_url,
-                      bool obey_proxies);
+                      bool obey_proxies,
+                      bool interactive);
 
   // ActionProcessorDelegate methods:
   void ProcessingDone(const ActionProcessor* processor, ActionExitCode code);