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

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

Issue 2555783003: cros: Remove unused method (Closed)
Patch Set: Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/device_disabled_screen.h" 5 #include "chrome/browser/chromeos/login/screens/device_disabled_screen.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 15 matching lines...) Expand all
26 actor_->SetDelegate(this); 26 actor_->SetDelegate(this);
27 device_disabling_manager_->AddObserver(this); 27 device_disabling_manager_->AddObserver(this);
28 } 28 }
29 29
30 DeviceDisabledScreen::~DeviceDisabledScreen() { 30 DeviceDisabledScreen::~DeviceDisabledScreen() {
31 if (actor_) 31 if (actor_)
32 actor_->SetDelegate(nullptr); 32 actor_->SetDelegate(nullptr);
33 device_disabling_manager_->RemoveObserver(this); 33 device_disabling_manager_->RemoveObserver(this);
34 } 34 }
35 35
36 void DeviceDisabledScreen::PrepareToShow() {
37 }
38
39 void DeviceDisabledScreen::Show() { 36 void DeviceDisabledScreen::Show() {
40 if (!actor_ || showing_) 37 if (!actor_ || showing_)
41 return; 38 return;
42 39
43 showing_ = true; 40 showing_ = true;
44 actor_->Show(); 41 actor_->Show();
45 } 42 }
46 43
47 void DeviceDisabledScreen::Hide() { 44 void DeviceDisabledScreen::Hide() {
48 if (!showing_) 45 if (!showing_)
(...skipping 21 matching lines...) Expand all
70 return device_disabling_manager_->disabled_message(); 67 return device_disabling_manager_->disabled_message();
71 } 68 }
72 69
73 void DeviceDisabledScreen::OnDisabledMessageChanged( 70 void DeviceDisabledScreen::OnDisabledMessageChanged(
74 const std::string& disabled_message) { 71 const std::string& disabled_message) {
75 if (actor_) 72 if (actor_)
76 actor_->UpdateMessage(disabled_message); 73 actor_->UpdateMessage(disabled_message);
77 } 74 }
78 75
79 } // namespace chromeos 76 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698