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

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

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: Incoporate pathset 3 comments Created 3 years, 6 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698