| Index: chrome/browser/chromeos/cros/update_library.cc
|
| diff --git a/chrome/browser/chromeos/cros/update_library.cc b/chrome/browser/chromeos/cros/update_library.cc
|
| index d4d48caf8680d76163a69d76162ffcf35d4c943b..ab11616724b034a57b1180de7c9f6e35db09e0eb 100644
|
| --- a/chrome/browser/chromeos/cros/update_library.cc
|
| +++ b/chrome/browser/chromeos/cros/update_library.cc
|
| @@ -22,7 +22,7 @@ class UpdateLibraryImpl : public UpdateLibrary {
|
| }
|
| }
|
|
|
| - ~UpdateLibraryImpl() {
|
| + virtual ~UpdateLibraryImpl() {
|
| if (status_connection_) {
|
| DisconnectUpdateProgress(status_connection_);
|
| }
|
| @@ -76,6 +76,8 @@ class UpdateLibraryImpl : public UpdateLibrary {
|
|
|
| void Init() {
|
| status_connection_ = MonitorUpdateStatus(&ChangedHandler, this);
|
| + // Asynchronously load the initial state.
|
| + RequestUpdateStatus(&ChangedHandler, this);
|
| }
|
|
|
| void UpdateStatus(const Status& status) {
|
| @@ -115,7 +117,7 @@ class UpdateLibraryImpl : public UpdateLibrary {
|
| class UpdateLibraryStubImpl : public UpdateLibrary {
|
| public:
|
| UpdateLibraryStubImpl() {}
|
| - ~UpdateLibraryStubImpl() {}
|
| + virtual ~UpdateLibraryStubImpl() {}
|
| void AddObserver(Observer* observer) {}
|
| void RemoveObserver(Observer* observer) {}
|
| bool HasObserver(Observer* observer) { return false; }
|
|
|