| Index: chrome/browser/chromeos/login/update_screen.cc
|
| diff --git a/chrome/browser/chromeos/login/update_screen.cc b/chrome/browser/chromeos/login/update_screen.cc
|
| index 15e389408964a66693fa136a6c7cb3a57a01e0e2..1958ad384e6cad8b76985390bd177e94e343f724 100644
|
| --- a/chrome/browser/chromeos/login/update_screen.cc
|
| +++ b/chrome/browser/chromeos/login/update_screen.cc
|
| @@ -184,15 +184,10 @@ void UpdateScreen::UpdateStatusChanged(const UpdateLibrary::Status& status) {
|
| }
|
|
|
| void UpdateScreen::StartUpdate() {
|
| - if (!CrosLibrary::Get()->EnsureLoaded()) {
|
| - LOG(ERROR) << "Error loading CrosLibrary";
|
| - ExitUpdate(REASON_UPDATE_INIT_FAILED);
|
| - } else {
|
| - CrosLibrary::Get()->GetUpdateLibrary()->AddObserver(this);
|
| - VLOG(1) << "Initiate update check";
|
| - CrosLibrary::Get()->GetUpdateLibrary()->RequestUpdateCheck(
|
| - StartUpdateCallback, this);
|
| - }
|
| + CrosLibrary::Get()->GetUpdateLibrary()->AddObserver(this);
|
| + VLOG(1) << "Initiate update check";
|
| + CrosLibrary::Get()->GetUpdateLibrary()->RequestUpdateCheck(
|
| + StartUpdateCallback, this);
|
| }
|
|
|
| void UpdateScreen::CancelUpdate() {
|
| @@ -216,8 +211,7 @@ void UpdateScreen::PrepareToShow() {
|
| }
|
|
|
| void UpdateScreen::ExitUpdate(UpdateScreen::ExitReason reason) {
|
| - if (CrosLibrary::Get()->EnsureLoaded())
|
| - CrosLibrary::Get()->GetUpdateLibrary()->RemoveObserver(this);
|
| + CrosLibrary::Get()->GetUpdateLibrary()->RemoveObserver(this);
|
|
|
| switch (reason) {
|
| case REASON_UPDATE_CANCELED:
|
|
|