Chromium Code Reviews| Index: chrome/browser/chromeos/login/user_selection_screen_proxy.cc |
| diff --git a/chrome/browser/chromeos/login/user_selection_screen_proxy.cc b/chrome/browser/chromeos/login/user_selection_screen_proxy.cc |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..42eb82372559ff34253bca301feb435f16ede196 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/login/user_selection_screen_proxy.cc |
| @@ -0,0 +1,43 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#include "chrome/browser/chromeos/login/user_selection_screen_proxy.h" |
| + |
| +#include "chrome/browser/ui/ash/lock_screen_client.h" |
| + |
| +namespace chromeos { |
| + |
| +UserSelectionScreenProxy::UserSelectionScreenProxy() = default; |
| + |
| +UserSelectionScreenProxy::~UserSelectionScreenProxy() = default; |
| + |
| +void UserSelectionScreenProxy::ShowUserPodCustomIcon( |
| + const AccountId& account_id, |
| + const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions& |
| + icon_options) { |
| + ash::mojom::UserPodCustomIconOptionsPtr icon = |
| + icon_options.ToUserPodCustomIconOptionsPtr(); |
| + if (!icon) |
| + return; |
| + 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.
|
| +} |
| + |
| +void UserSelectionScreenProxy::HideUserPodCustomIcon( |
| + const AccountId& account_id) { |
| + LockScreenClient::Get()->HideUserPodCustomIcon(account_id); |
| +} |
| + |
| +void UserSelectionScreenProxy::SetAuthType( |
| + const AccountId& account_id, |
| + proximity_auth::ScreenlockBridge::LockHandler::AuthType auth_type, |
| + const base::string16& initial_value) { |
| + LockScreenClient::Get()->SetAuthType( |
| + account_id, static_cast<ash::mojom::AuthType>(auth_type), initial_value); |
| +} |
| + |
| +base::WeakPtr<chromeos::UserBoardView> UserSelectionScreenProxy::GetWeakPtr() { |
| + return base::WeakPtr<chromeos::UserBoardView>(); |
| +} |
| + |
| +} // namespace chromeos |