diff options
-rw-r--r-- | chrome/browser/chromeos/cros/update_library.cc | 6 | ||||
-rw-r--r-- | tools/cros.DEPS/DEPS | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/cros/update_library.cc b/chrome/browser/chromeos/cros/update_library.cc index d4d48caf..ab11616 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; } diff --git a/tools/cros.DEPS/DEPS b/tools/cros.DEPS/DEPS index f510eee..65af03a 100644 --- a/tools/cros.DEPS/DEPS +++ b/tools/cros.DEPS/DEPS @@ -4,5 +4,5 @@ vars = { deps = { "src/third_party/cros": - Var("chromium_git") + "/cros.git@9cee76bb", + Var("chromium_git") + "/cros.git@8cab7204", } |