| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/login/screens/update_screen.h" | 5 #include "chrome/browser/chromeos/login/screens/update_screen.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
| (...skipping 323 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 if (view_) | 334 if (view_) |
| 335 view_->Show(); | 335 view_->Show(); |
| 336 } | 336 } |
| 337 | 337 |
| 338 void UpdateScreen::Hide() { | 338 void UpdateScreen::Hide() { |
| 339 if (view_) | 339 if (view_) |
| 340 view_->Hide(); | 340 view_->Hide(); |
| 341 is_shown_ = false; | 341 is_shown_ = false; |
| 342 } | 342 } |
| 343 | 343 |
| 344 void UpdateScreen::Initialize(::login::ScreenContext* context) { | |
| 345 UpdateModel::Initialize(context); | |
| 346 } | |
| 347 | |
| 348 void UpdateScreen::OnViewDestroyed(UpdateView* view) { | 344 void UpdateScreen::OnViewDestroyed(UpdateView* view) { |
| 349 if (view_ == view) | 345 if (view_ == view) |
| 350 view_ = nullptr; | 346 view_ = nullptr; |
| 351 } | 347 } |
| 352 | 348 |
| 353 void UpdateScreen::OnUserAction(const std::string& action_id) { | 349 void UpdateScreen::OnUserAction(const std::string& action_id) { |
| 354 #if !defined(OFFICIAL_BUILD) | 350 #if !defined(OFFICIAL_BUILD) |
| 355 if (action_id == kUserActionCancelUpdateShortcut) | 351 if (action_id == kUserActionCancelUpdateShortcut) |
| 356 CancelUpdate(); | 352 CancelUpdate(); |
| 357 else | 353 else |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 } | 591 } |
| 596 | 592 |
| 597 void UpdateScreen::OnConnectRequested() { | 593 void UpdateScreen::OnConnectRequested() { |
| 598 if (state_ == STATE_ERROR) { | 594 if (state_ == STATE_ERROR) { |
| 599 LOG(WARNING) << "Hiding error message since AP was reselected"; | 595 LOG(WARNING) << "Hiding error message since AP was reselected"; |
| 600 StartUpdateCheck(); | 596 StartUpdateCheck(); |
| 601 } | 597 } |
| 602 } | 598 } |
| 603 | 599 |
| 604 } // namespace chromeos | 600 } // namespace chromeos |
| OLD | NEW |