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

Unified 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, 7 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 side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698