#include "chrome/browser/ui/passwords/bubble_controllers/common_saved_account_manager_bubble_controller.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_avatar_icon_util.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "components/password_manager/core/browser/features/password_manager_features_util.h"
#include "components/password_manager/core/browser/password_form_metrics_recorder.h"
#include "components/password_manager/core/browser/password_manager_metrics_util.h"
#include "components/signin/public/identity_manager/identity_manager.h"
namespace {
std::u16string GetPrimaryAccountEmailFromProfile(Profile* profile) { … }
}
CommonSavedAccountManagerBubbleController::
CommonSavedAccountManagerBubbleController(
base::WeakPtr<PasswordsModelDelegate> delegate,
DisplayReason display_reason,
password_manager::metrics_util::UIDisplayDisposition
display_disposition)
: … { … }
CommonSavedAccountManagerBubbleController::
~CommonSavedAccountManagerBubbleController() = default;
void CommonSavedAccountManagerBubbleController::OnNoThanksClicked() { … }
void CommonSavedAccountManagerBubbleController::OnCredentialEdited(
std::u16string new_username,
std::u16string new_password) { … }
void CommonSavedAccountManagerBubbleController::
OnGooglePasswordManagerLinkClicked(
password_manager::ManagePasswordsReferrer refferer) { … }
std::u16string
CommonSavedAccountManagerBubbleController::GetPrimaryAccountEmail() { … }
void CommonSavedAccountManagerBubbleController::OnUserAuthenticationCompleted(
base::OnceCallback<void(bool)> completion,
bool authentication_result) { … }
url::Origin CommonSavedAccountManagerBubbleController::GetOrigin() const { … }
password_manager::ui::State
CommonSavedAccountManagerBubbleController::GetState() const { … }
const password_manager::PasswordForm&
CommonSavedAccountManagerBubbleController::GetPendingPassword() const { … }
password_manager::metrics_util::UIDisplayDisposition
CommonSavedAccountManagerBubbleController::GetDisplayDisposition() const { … }
password_manager::metrics_util::UIDismissalReason
CommonSavedAccountManagerBubbleController::GetDismissalReason() const { … }
void CommonSavedAccountManagerBubbleController::SetDismissalReason(
password_manager::metrics_util::UIDismissalReason reason) { … }