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

Unified Diff: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc

Issue 2903353003: Adding mojo calls for easy unlock service (Closed)
Patch Set: comments and rebase 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc b/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
index 0fca4ef2f4634c396537aa7a597cb278e4acaa4b..608414aff573b3a1020caa6735351190ad8aea05 100644
--- a/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.cc
@@ -71,8 +71,13 @@ void UserBoardScreenHandler::ShowBannerMessage(const base::string16& message) {
void UserBoardScreenHandler::ShowUserPodCustomIcon(
const AccountId& account_id,
- const base::DictionaryValue& icon) {
- CallJS("login.AccountPickerScreen.showUserPodCustomIcon", account_id, icon);
+ const proximity_auth::ScreenlockBridge::UserPodCustomIconOptions&
+ icon_options) {
+ std::unique_ptr<base::DictionaryValue> icon =
+ icon_options.ToDictionaryValue();
+ if (!icon || icon->empty())
+ return;
+ CallJS("login.AccountPickerScreen.showUserPodCustomIcon", account_id, *icon);
}
void UserBoardScreenHandler::HideUserPodCustomIcon(
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/user_board_screen_handler.h ('k') | components/proximity_auth/screenlock_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698