summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/update_observer.cc
diff options
context:
space:
mode:
authornkostylev@google.com <nkostylev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 10:57:52 +0000
committernkostylev@google.com <nkostylev@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 10:57:52 +0000
commita463020ae3382fd5396934b3072f13c9dcefd2f1 (patch)
treee3c1a7f77bd199adc92396e761ae8696c198ed75 /chrome/browser/chromeos/update_observer.cc
parent536677f371500a00701bce4d929267984c8c6e03 (diff)
downloadchromium_src-a463020ae3382fd5396934b3072f13c9dcefd2f1.zip
chromium_src-a463020ae3382fd5396934b3072f13c9dcefd2f1.tar.gz
chromium_src-a463020ae3382fd5396934b3072f13c9dcefd2f1.tar.bz2
Use new update API during OOBE.
Add test shortcut for register screen. BUG= http://crosbug.com/4483 http://crosbug.com/4003 http://crosbug.com/4002 TEST=Manual - update during OOBE should work and reboot if update has been installed. Review URL: http://codereview.chromium.org/2832088 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54303 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/update_observer.cc')
-rw-r--r--chrome/browser/chromeos/update_observer.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/chromeos/update_observer.cc b/chrome/browser/chromeos/update_observer.cc
index 56c919e..b73fd0a 100644
--- a/chrome/browser/chromeos/update_observer.cc
+++ b/chrome/browser/chromeos/update_observer.cc
@@ -22,8 +22,8 @@ UpdateObserver::~UpdateObserver() {
notification_.Hide();
}
-void UpdateObserver::Changed(UpdateLibrary* object) {
- switch (object->status().status) {
+void UpdateObserver::UpdateStatusChanged(UpdateLibrary* library) {
+ switch (library->status().status) {
case UPDATE_STATUS_IDLE:
case UPDATE_STATUS_CHECKING_FOR_UPDATE:
// Do nothing in these cases, we don't want to notify the user of the
@@ -36,7 +36,7 @@ void UpdateObserver::Changed(UpdateLibrary* object) {
break;
case UPDATE_STATUS_DOWNLOADING:
{
- int progress = static_cast<int>(object->status().download_progress *
+ int progress = static_cast<int>(library->status().download_progress *
100.0);
if (progress != progress_) {
progress_ = progress;