Index: chrome/browser/ui/webui/help/version_updater_chromeos.h |
diff --git a/chrome/browser/ui/webui/help/version_updater_chromeos.h b/chrome/browser/ui/webui/help/version_updater_chromeos.h |
index bfdee79df091d2ee082631bfd251bbf22c2a8099..0d05b065793ad59a6f05c2ad6a0bd3ef1514f4c2 100644 |
--- a/chrome/browser/ui/webui/help/version_updater_chromeos.h |
+++ b/chrome/browser/ui/webui/help/version_updater_chromeos.h |
@@ -31,6 +31,10 @@ class VersionUpdaterCros : public VersionUpdater, |
VersionUpdaterCros(); |
virtual ~VersionUpdaterCros(); |
+ // Returns whether an update is allowed. If not, it calls the callback with |
+ // the appropriate status. May be overridden in tests. |
+ virtual bool EnsureCanUpdate(const StatusCallback& callback); |
+ |
private: |
// UpdateEngineClient::Observer implementation. |
virtual void UpdateStatusChanged( |
@@ -45,6 +49,9 @@ class VersionUpdaterCros : public VersionUpdater, |
// Last state received via UpdateStatusChanged(). |
chromeos::UpdateEngineClient::UpdateStatusOperation last_operation_; |
+ // True if an update check should be scheduled when the update engine is idle. |
+ bool check_for_update_when_idle_; |
+ |
base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; |
DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); |