Gabriel Viera | 08abe3b6 | 2024-08-14 18:15:06 | [diff] [blame] | 1 | // Copyright 2024 The Chromium Authors |
| 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/ui/webauthn/passkey_updated_confirmation_controller.h" |
| 6 | |
Adem Derinel | 0bf5c5ec | 2025-01-15 09:11:41 | [diff] [blame] | 7 | #include <string> |
| 8 | #include <utility> |
| 9 | |
| 10 | #include "base/memory/weak_ptr.h" |
| 11 | #include "chrome/browser/ui/passwords/bubble_controllers/password_bubble_controller_base.h" |
Gabriel Viera | 08abe3b6 | 2024-08-14 18:15:06 | [diff] [blame] | 12 | #include "chrome/browser/ui/passwords/passwords_model_delegate.h" |
| 13 | #include "chrome/grit/generated_resources.h" |
Adem Derinel | 0bf5c5ec | 2025-01-15 09:11:41 | [diff] [blame] | 14 | #include "components/password_manager/core/browser/manage_passwords_referrer.h" |
Gabriel Viera | 08abe3b6 | 2024-08-14 18:15:06 | [diff] [blame] | 15 | #include "components/password_manager/core/browser/password_manager_metrics_util.h" |
| 16 | #include "ui/base/l10n/l10n_util.h" |
| 17 | |
| 18 | PasskeyUpdatedConfirmationController::PasskeyUpdatedConfirmationController( |
| 19 | base::WeakPtr<PasswordsModelDelegate> delegate, |
Nina Satragno | 035dd8f | 2024-10-22 22:57:56 | [diff] [blame] | 20 | password_manager::metrics_util::UIDisplayDisposition display_disposition, |
| 21 | std::string passkey_rp_id) |
| 22 | : PasswordBubbleControllerBase(std::move(delegate), display_disposition), |
| 23 | passkey_rp_id_(std::move(passkey_rp_id)) {} |
Gabriel Viera | 08abe3b6 | 2024-08-14 18:15:06 | [diff] [blame] | 24 | |
| 25 | PasskeyUpdatedConfirmationController::~PasskeyUpdatedConfirmationController() { |
| 26 | OnBubbleClosing(); |
| 27 | } |
| 28 | |
| 29 | std::u16string PasskeyUpdatedConfirmationController::GetTitle() const { |
| 30 | return l10n_util::GetStringUTF16(IDS_WEBAUTHN_GPM_PASSKEY_UPDATED_TITLE); |
|
|