Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3246)

Unified Diff: chrome/browser/chromeos/cros/update_library.cc

Issue 6952011: CrOS - Check current state of update-engine on startup (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with cros.DEPS Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/cros.DEPS/DEPS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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; }
« no previous file with comments | « no previous file | tools/cros.DEPS/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698