Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/chromeos/login/user_selection_screen_proxy.h" | |
| 6 | |
| 7 #include "chrome/browser/ui/ash/lock_screen_client.h" | |
| 8 | |
| 9 namespace chromeos { | |
| 10 | |
| 11 UserSelectionScreenProxy::UserSelectionScreenProxy() = default; | |
| 12 | |
| 13 UserSelectionScreenProxy::~UserSelectionScreenProxy() = default; | |
| 14 | |
| 15 void UserSelectionScreenProxy::ShowUserPodCustomIcon( | |
| 16 const AccountId& account_id, | |
| 17 const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions& | |
| 18 icon_options) { | |
| 19 ash::mojom::UserPodCustomIconOptionsPtr icon = | |
| 20 icon_options.ToUserPodCustomIconOptionsPtr(); | |
| 21 if (!icon) | |
| 22 return; | |
| 23 LockScreenClient::Get()->ShowUserPodCustomIcon(account_id, std::move(icon)); | |
|
xiyuan
2017/06/05 17:30:40
nit: #include <utility>
xiaoyinh(OOO Sep 11-29)
2017/06/06 16:36:05
Done.
| |
| 24 } | |
| 25 | |
| 26 void UserSelectionScreenProxy::HideUserPodCustomIcon( | |
| 27 const AccountId& account_id) { | |
| 28 LockScreenClient::Get()->HideUserPodCustomIcon(account_id); | |
| 29 } | |
| 30 | |
| 31 void UserSelectionScreenProxy::SetAuthType( | |
| 32 const AccountId& account_id, | |
| 33 proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, | |
| 34 const base::string16& initial_value) { | |
| 35 LockScreenClient::Get()->SetAuthType( | |
| 36 account_id, static_cast<ash::mojom::AuthType>(auth_type), initial_value); | |
| 37 } | |
| 38 | |
| 39 base::WeakPtr<chromeos::UserBoardView> UserSelectionScreenProxy::GetWeakPtr() { | |
| 40 return base::WeakPtr<chromeos::UserBoardView>(); | |
| 41 } | |
| 42 | |
| 43 } // namespace chromeos | |
| OLD | NEW |