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

Side by Side Diff: chrome/browser/chromeos/login/screens/update_screen.cc

Issue 647043004: WizardScreen is merged to BaseScreen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git/+/master
Patch Set: Created 6 years, 2 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 unified diff | Download patch
OLDNEW
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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 InstanceSet::iterator found = instance_set.find(inst); 85 InstanceSet::iterator found = instance_set.find(inst);
86 return (found != instance_set.end()); 86 return (found != instance_set.end());
87 } 87 }
88 88
89 // static 89 // static
90 UpdateScreen* UpdateScreen::Get(ScreenManager* manager) { 90 UpdateScreen* UpdateScreen::Get(ScreenManager* manager) {
91 return static_cast<UpdateScreen*>( 91 return static_cast<UpdateScreen*>(
92 manager->GetScreen(WizardController::kUpdateScreenName)); 92 manager->GetScreen(WizardController::kUpdateScreenName));
93 } 93 }
94 94
95 UpdateScreen::UpdateScreen( 95 UpdateScreen::UpdateScreen(ScreenObserver* screen_observer,
96 ScreenObserver* screen_observer, 96 UpdateScreenActor* actor,
97 UpdateScreenActor* actor, 97 HostPairingController* remora_controller)
98 HostPairingController* remora_controller) 98 : BaseScreen(screen_observer),
99 : WizardScreen(screen_observer),
100 state_(STATE_IDLE), 99 state_(STATE_IDLE),
101 reboot_check_delay_(0), 100 reboot_check_delay_(0),
102 is_checking_for_update_(true), 101 is_checking_for_update_(true),
103 is_downloading_update_(false), 102 is_downloading_update_(false),
104 is_ignore_update_deadlines_(false), 103 is_ignore_update_deadlines_(false),
105 is_shown_(false), 104 is_shown_(false),
106 ignore_idle_status_(true), 105 ignore_idle_status_(true),
107 actor_(actor), 106 actor_(actor),
108 remora_controller_(remora_controller), 107 remora_controller_(remora_controller),
109 is_first_detection_notification_(true), 108 is_first_detection_notification_(true),
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 } 535 }
537 536
538 void UpdateScreen::SetHostPairingControllerStatus( 537 void UpdateScreen::SetHostPairingControllerStatus(
539 HostPairingController::UpdateStatus update_status) { 538 HostPairingController::UpdateStatus update_status) {
540 if (remora_controller_) { 539 if (remora_controller_) {
541 remora_controller_->OnUpdateStatusChanged(update_status); 540 remora_controller_->OnUpdateStatusChanged(update_status);
542 } 541 }
543 } 542 }
544 543
545 } // namespace chromeos 544 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/update_screen.h ('k') | chrome/browser/chromeos/login/screens/user_image_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698