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

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

Issue 14200033: [cros] Rename BaseLoginDisplayHost to LoginDisplayHostImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years, 8 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 | Annotate | Revision Log
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/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 "ash/ash_switches.h" 9 #include "ash/ash_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "base/memory/ref_counted_memory.h" 12 #include "base/memory/ref_counted_memory.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/browser/browser_about_handler.h" 14 #include "chrome/browser/browser_about_handler.h"
15 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h" 15 #include "chrome/browser/chromeos/kiosk_mode/kiosk_mode_settings.h"
16 #include "chrome/browser/chromeos/login/base_login_display_host.h"
17 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_ actor.h" 16 #include "chrome/browser/chromeos/login/enrollment/enterprise_enrollment_screen_ actor.h"
17 #include "chrome/browser/chromeos/login/login_display_host_impl.h"
18 #include "chrome/browser/chromeos/login/screen_locker.h" 18 #include "chrome/browser/chromeos/login/screen_locker.h"
19 #include "chrome/browser/chromeos/login/user_manager.h" 19 #include "chrome/browser/chromeos/login/user_manager.h"
20 #include "chrome/browser/chromeos/login/wizard_controller.h" 20 #include "chrome/browser/chromeos/login/wizard_controller.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/ui/webui/about_ui.h" 22 #include "chrome/browser/ui/webui/about_ui.h"
23 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h" 23 #include "chrome/browser/ui/webui/chromeos/login/base_screen_handler.h"
24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h" 24 #include "chrome/browser/ui/webui/chromeos/login/enterprise_oauth_enrollment_scr een_handler.h"
25 #include "chrome/browser/ui/webui/chromeos/login/error_screen_handler.h" 25 #include "chrome/browser/ui/webui/chromeos/login/error_screen_handler.h"
26 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h" 26 #include "chrome/browser/ui/webui/chromeos/login/eula_screen_handler.h"
27 #include "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h" 27 #include "chrome/browser/ui/webui/chromeos/login/kiosk_app_menu_handler.h"
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
318 } else { 318 } else {
319 localized_strings->SetString("bootIntoWallpaper", "off"); 319 localized_strings->SetString("bootIntoWallpaper", "off");
320 } 320 }
321 321
322 // TODO(nkostylev): Make sure that only one type of login UI 322 // TODO(nkostylev): Make sure that only one type of login UI
323 // is active at a time. 323 // is active at a time.
324 // OobeUI is used for these use cases: 324 // OobeUI is used for these use cases:
325 // 1. Out-of-box / login 325 // 1. Out-of-box / login
326 // 2. Lock screen. 326 // 2. Lock screen.
327 // 3. Multi-profiles sign in (add user to current session). 327 // 3. Multi-profiles sign in (add user to current session).
328 if (BaseLoginDisplayHost::default_host()) { 328 if (LoginDisplayHostImpl::default_host()) {
329 if (!UserManager::Get()->IsUserLoggedIn()) 329 if (!UserManager::Get()->IsUserLoggedIn())
330 localized_strings->SetString("screenType", "login"); 330 localized_strings->SetString("screenType", "login");
331 else 331 else
332 localized_strings->SetString("screenType", "login-add-user"); 332 localized_strings->SetString("screenType", "login-add-user");
333 } else { 333 } else {
334 localized_strings->SetString("screenType", "lock"); 334 localized_strings->SetString("screenType", "lock");
335 } 335 }
336 } 336 }
337 337
338 void OobeUI::InitializeScreenMaps() { 338 void OobeUI::InitializeScreenMaps() {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
397 void OobeUI::OnCurrentScreenChanged(const std::string& screen) { 397 void OobeUI::OnCurrentScreenChanged(const std::string& screen) {
398 if (screen_ids_.count(screen)) { 398 if (screen_ids_.count(screen)) {
399 current_screen_ = screen_ids_[screen]; 399 current_screen_ = screen_ids_[screen];
400 } else { 400 } else {
401 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()"; 401 NOTREACHED() << "Screen should be registered in InitializeScreenMaps()";
402 current_screen_ = SCREEN_UNKNOWN; 402 current_screen_ = SCREEN_UNKNOWN;
403 } 403 }
404 } 404 }
405 405
406 } // namespace chromeos 406 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698