OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/user_manager_impl.h" | 5 #include "chrome/browser/chromeos/login/user_manager_impl.h" |
6 | 6 |
7 #include <cstddef> | 7 #include <cstddef> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1445 kiosk_app_id = account->kiosk_app_id; | 1445 kiosk_app_id = account->kiosk_app_id; |
1446 } else { | 1446 } else { |
1447 LOG(ERROR) << "Logged into nonexistent kiosk-app account: " << app_id; | 1447 LOG(ERROR) << "Logged into nonexistent kiosk-app account: " << app_id; |
1448 NOTREACHED(); | 1448 NOTREACHED(); |
1449 } | 1449 } |
1450 | 1450 |
1451 CommandLine* command_line = CommandLine::ForCurrentProcess(); | 1451 CommandLine* command_line = CommandLine::ForCurrentProcess(); |
1452 command_line->AppendSwitch(::switches::kForceAppMode); | 1452 command_line->AppendSwitch(::switches::kForceAppMode); |
1453 command_line->AppendSwitchASCII(::switches::kAppId, kiosk_app_id); | 1453 command_line->AppendSwitchASCII(::switches::kAppId, kiosk_app_id); |
1454 | 1454 |
1455 // TODO(hshi): re-enable ubercomp in kiosk mode. http://crbug.com/342061 | |
1456 command_line->AppendSwitch(::switches::kDisableDelegatedRenderer); | |
1457 | |
1458 // Disable window animation since kiosk app runs in a single full screen | 1455 // Disable window animation since kiosk app runs in a single full screen |
1459 // window and window animation causes start-up janks. | 1456 // window and window animation causes start-up janks. |
1460 command_line->AppendSwitch( | 1457 command_line->AppendSwitch( |
1461 views::corewm::switches::kWindowAnimationsDisabled); | 1458 views::corewm::switches::kWindowAnimationsDisabled); |
1462 } | 1459 } |
1463 | 1460 |
1464 void UserManagerImpl::RetailModeUserLoggedIn() { | 1461 void UserManagerImpl::RetailModeUserLoggedIn() { |
1465 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); | 1462 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
1466 is_current_user_new_ = true; | 1463 is_current_user_new_ = true; |
1467 active_user_ = User::CreateRetailModeUser(); | 1464 active_user_ = User::CreateRetailModeUser(); |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2004 if (User* user = FindUserAndModify(user_id)) | 2001 if (User* user = FindUserAndModify(user_id)) |
2005 user->SetAccountLocale(resolved_locale); | 2002 user->SetAccountLocale(resolved_locale); |
2006 } | 2003 } |
2007 | 2004 |
2008 void UserManagerImpl::UpdateNumberOfUsers() { | 2005 void UserManagerImpl::UpdateNumberOfUsers() { |
2009 base::debug::SetCrashKeyValue(crash_keys::kNumberOfUsers, | 2006 base::debug::SetCrashKeyValue(crash_keys::kNumberOfUsers, |
2010 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size())); | 2007 base::StringPrintf("%" PRIuS, GetLoggedInUsers().size())); |
2011 } | 2008 } |
2012 | 2009 |
2013 } // namespace chromeos | 2010 } // namespace chromeos |
OLD | NEW |