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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/oobe_ui.cc

Issue 8395042: [cros,de-hack] Get rid of singleton for the WebUILoginScreen. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: comment nit Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ui/webui/chromeos/login/oobe_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 // Note, handlers_[0] is a GenericHandler used by the WebUI. 229 // Note, handlers_[0] is a GenericHandler used by the WebUI.
230 for (size_t i = 1; i < handlers_.size(); ++i) { 230 for (size_t i = 1; i < handlers_.size(); ++i) {
231 static_cast<BaseScreenHandler*>(handlers_[i])->InitializeBase(); 231 static_cast<BaseScreenHandler*>(handlers_[i])->InitializeBase();
232 } 232 }
233 } 233 }
234 234
235 void OobeUI::ShowOobeUI(bool show) { 235 void OobeUI::ShowOobeUI(bool show) {
236 core_handler_->ShowOobeUI(show); 236 core_handler_->ShowOobeUI(show);
237 } 237 }
238 238
239 void OobeUI::ShowSigninScreen() { 239 void OobeUI::ShowSigninScreen(SigninScreenHandlerDelegate* delegate) {
240 signin_screen_handler_->SetDelegate(delegate);
240 signin_screen_handler_->Show(core_handler_->show_oobe_ui()); 241 signin_screen_handler_->Show(core_handler_->show_oobe_ui());
241 } 242 }
242 243
243 void OobeUI::OnLoginPromptVisible() { 244 void OobeUI::OnLoginPromptVisible() {
244 user_image_screen_actor_->CheckCameraPresence(); 245 user_image_screen_actor_->CheckCameraPresence();
245 } 246 }
246 247
247 } // namespace chromeos 248 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/oobe_ui.h ('k') | chrome/browser/ui/webui/chromeos/login/signin_screen_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698