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

Side by Side Diff: chrome/browser/chromeos/login/screens/error_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 (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/error_screen.h" 5 #include "chrome/browser/chromeos/login/screens/error_screen.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 network_state_informer_->Init(); 64 network_state_informer_->Init();
65 if (view_) 65 if (view_)
66 view_->Bind(*this); 66 view_->Bind(*this);
67 } 67 }
68 68
69 ErrorScreen::~ErrorScreen() { 69 ErrorScreen::~ErrorScreen() {
70 if (view_) 70 if (view_)
71 view_->Unbind(); 71 view_->Unbind();
72 } 72 }
73 73
74 void ErrorScreen::PrepareToShow() {
75 if (view_)
76 view_->PrepareToShow();
77 }
78
79 void ErrorScreen::Show() { 74 void ErrorScreen::Show() {
80 if (!on_hide_callback_) { 75 if (!on_hide_callback_) {
81 SetHideCallback(base::Bind(&ErrorScreen::DefaultHideCallback, 76 SetHideCallback(base::Bind(&ErrorScreen::DefaultHideCallback,
82 weak_factory_.GetWeakPtr())); 77 weak_factory_.GetWeakPtr()));
83 } 78 }
84 if (view_) 79 if (view_)
85 view_->Show(); 80 view_->Show();
86 } 81 }
87 82
88 void ErrorScreen::Hide() { 83 void ErrorScreen::Hide() {
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 332 }
338 333
339 if (guest_login_performer_) 334 if (guest_login_performer_)
340 return; 335 return;
341 336
342 guest_login_performer_.reset(new ChromeLoginPerformer(this)); 337 guest_login_performer_.reset(new ChromeLoginPerformer(this));
343 guest_login_performer_->LoginOffTheRecord(); 338 guest_login_performer_->LoginOffTheRecord();
344 } 339 }
345 340
346 } // namespace chromeos 341 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/screens/error_screen.h ('k') | chrome/browser/chromeos/login/screens/eula_screen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698