#include "chrome/browser/ui/autofill/add_new_address_bubble_controller.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/autofill/ui/ui_util.h"
#include "components/autofill/content/browser/content_autofill_client.h"
#include "components/autofill/core/browser/address_data_manager.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/browser/personal_data_manager.h"
#include "components/strings/grit/components_strings.h"
#include "ui/base/l10n/l10n_util.h"
namespace autofill {
namespace {
AddressCountryCode GetCountryCodeForNewAddress(
content::WebContents* web_contents) { … }
bool IsEligibleForAccountStorage(content::WebContents* web_contents,
const std::string& country_code) { … }
}
AddNewAddressBubbleController::AddNewAddressBubbleController(
content::WebContents* web_contents,
base::WeakPtr<AddressBubbleControllerDelegate> delegate)
: … { … }
AddNewAddressBubbleController::~AddNewAddressBubbleController() = default;
std::u16string AddNewAddressBubbleController::GetBodyText() const { … }
std::u16string AddNewAddressBubbleController::GetFooterMessage() const { … }
void AddNewAddressBubbleController::OnUserDecision(
AutofillClient::AddressPromptUserDecision decision) { … }
void AddNewAddressBubbleController::OnAddButtonClicked() { … }
void AddNewAddressBubbleController::OnBubbleClosed() { … }
}