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

Side by Side Diff: chrome/browser/chromeos/login/arc_kiosk_controller.cc

Issue 2700783002: s/\bArc\b/ARC/g for ARC related code. (Closed)
Patch Set: Address ARC++ Created 3 years, 10 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/arc_kiosk_controller.h" 5 #include "chrome/browser/chromeos/login/arc_kiosk_controller.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h" 10 #include "chrome/browser/chromeos/app_mode/kiosk_app_launch_error.h"
11 #include "chrome/browser/chromeos/login/auth/chrome_login_performer.h" 11 #include "chrome/browser/chromeos/login/auth/chrome_login_performer.h"
12 #include "chrome/browser/chromeos/login/ui/login_display_host.h" 12 #include "chrome/browser/chromeos/login/ui/login_display_host.h"
13 #include "chrome/browser/chromeos/login/ui/webui_login_view.h" 13 #include "chrome/browser/chromeos/login/ui/webui_login_view.h"
14 #include "chrome/browser/lifetime/application_lifetime.h" 14 #include "chrome/browser/lifetime/application_lifetime.h"
15 #include "chrome/browser/profiles/profile.h" 15 #include "chrome/browser/profiles/profile.h"
16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 16 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
17 #include "chromeos/login/auth/user_context.h" 17 #include "chromeos/login/auth/user_context.h"
18 #include "components/session_manager/core/session_manager.h" 18 #include "components/session_manager/core/session_manager.h"
19 #include "components/signin/core/account_id/account_id.h" 19 #include "components/signin/core/account_id/account_id.h"
20 20
21 namespace chromeos { 21 namespace chromeos {
22 22
23 // ARC++ Kiosk splash screen minimum show time. 23 // ARC Kiosk splash screen minimum show time.
24 constexpr base::TimeDelta kArcKioskSplashScreenMinTime = 24 constexpr base::TimeDelta kArcKioskSplashScreenMinTime =
25 base::TimeDelta::FromSeconds(3); 25 base::TimeDelta::FromSeconds(3);
26 26
27 ArcKioskController::ArcKioskController(LoginDisplayHost* host, OobeUI* oobe_ui) 27 ArcKioskController::ArcKioskController(LoginDisplayHost* host, OobeUI* oobe_ui)
28 : host_(host), 28 : host_(host),
29 arc_kiosk_splash_screen_actor_(oobe_ui->GetArcKioskSplashScreenActor()), 29 arc_kiosk_splash_screen_actor_(oobe_ui->GetArcKioskSplashScreenActor()),
30 weak_ptr_factory_(this) {} 30 weak_ptr_factory_(this) {}
31 31
32 ArcKioskController::~ArcKioskController() { 32 ArcKioskController::~ArcKioskController() {
33 arc_kiosk_splash_screen_actor_->SetDelegate(nullptr); 33 arc_kiosk_splash_screen_actor_->SetDelegate(nullptr);
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 void ArcKioskController::OnAppStarted() { 114 void ArcKioskController::OnAppStarted() {
115 DVLOG(1) << "ARC Kiosk launch succeeded, wait for app window."; 115 DVLOG(1) << "ARC Kiosk launch succeeded, wait for app window.";
116 arc_kiosk_splash_screen_actor_->UpdateArcKioskState( 116 arc_kiosk_splash_screen_actor_->UpdateArcKioskState(
117 ArcKioskSplashScreenActor::ArcKioskState::WAITING_APP_WINDOW); 117 ArcKioskSplashScreenActor::ArcKioskState::WAITING_APP_WINDOW);
118 } 118 }
119 119
120 void ArcKioskController::OnAppWindowLaunched() { 120 void ArcKioskController::OnAppWindowLaunched() {
121 DVLOG(1) << "App window created, closing splash screen."; 121 DVLOG(1) << "App window created, closing splash screen.";
122 launched_ = true; 122 launched_ = true;
123 // If timer is running, do not remove splash screen for a few 123 // If timer is running, do not remove splash screen for a few
124 // more seconds to give the user ability to exit ARC++ kiosk. 124 // more seconds to give the user ability to exit ARC kiosk.
125 if (splash_wait_timer_.IsRunning()) 125 if (splash_wait_timer_.IsRunning())
126 return; 126 return;
127 CloseSplashScreen(); 127 CloseSplashScreen();
128 } 128 }
129 129
130 void ArcKioskController::OnCancelArcKioskLaunch() { 130 void ArcKioskController::OnCancelArcKioskLaunch() {
131 KioskAppLaunchError::Save(KioskAppLaunchError::USER_CANCEL); 131 KioskAppLaunchError::Save(KioskAppLaunchError::USER_CANCEL);
132 CleanUp(); 132 CleanUp();
133 chrome::AttemptUserExit(); 133 chrome::AttemptUserExit();
134 } 134 }
135 135
136 } // namespace chromeos 136 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/extensions/wallpaper_manager_util.cc ('k') | chrome/browser/chromeos/login/wizard_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698