| Index: components/proximity_auth/screenlock_bridge.cc
|
| diff --git a/components/proximity_auth/screenlock_bridge.cc b/components/proximity_auth/screenlock_bridge.cc
|
| index 891c9d1675f9718cd3055d9fdf5ec53e087c3275..e1c7568e10e0c2bdfdbc18a54db866abe59a82b8 100644
|
| --- a/components/proximity_auth/screenlock_bridge.cc
|
| +++ b/components/proximity_auth/screenlock_bridge.cc
|
| @@ -89,6 +89,31 @@ ScreenlockBridge::UserPodCustomIconOptions::ToDictionaryValue() const {
|
| return result;
|
| }
|
|
|
| +ash::mojom::UserPodCustomIconOptionsPtr
|
| +ScreenlockBridge::UserPodCustomIconOptions::ToUserPodCustomIconOptionsPtr()
|
| + const {
|
| + ash::mojom::UserPodCustomIconOptionsPtr icon_options =
|
| + ash::mojom::UserPodCustomIconOptions::New();
|
| + std::string icon_id = GetIdForIcon(icon_);
|
| + icon_options->id = icon_id;
|
| +
|
| + if (!tooltip_.empty()) {
|
| + icon_options->tooltip = tooltip_;
|
| + icon_options->autoshow_tooltip = autoshow_tooltip_;
|
| + }
|
| +
|
| + if (!aria_label_.empty())
|
| + icon_options->aria_label = aria_label_;
|
| +
|
| + if (hardlock_on_click_)
|
| + icon_options->hardlock_on_click = true;
|
| +
|
| + if (is_trial_run_)
|
| + icon_options->is_trial_run = true;
|
| +
|
| + return icon_options;
|
| +}
|
| +
|
| void ScreenlockBridge::UserPodCustomIconOptions::SetIcon(
|
| ScreenlockBridge::UserPodCustomIcon icon) {
|
| icon_ = icon;
|
|
|