Commit 3881b10d authored by Matthias Körber's avatar Matthias Körber Committed by Commit Bot

Removed unused methods from |AutofillPopupLayoutModel|.

Bug: 1007974
Change-Id: I4cb954b366dc61c93ddaac5aeccd62f75e9a3ae9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1827405
Commit-Queue: Matthias Körber <koerber@google.com>
Commit-Queue: Vadym Doroshenko <dvadym@chromium.org>
Reviewed-by: default avatarVasilii Sukhanov <vasilii@chromium.org>
Cr-Commit-Position: refs/heads/master@{#700267}
parent bbcce7a4
...@@ -299,15 +299,6 @@ int AutofillPopupLayoutModel::GetIconResourceID( ...@@ -299,15 +299,6 @@ int AutofillPopupLayoutModel::GetIconResourceID(
return result; return result;
} }
int AutofillPopupLayoutModel::GetIconAccessibleNameResourceId(
const std::string& resource_name) const {
for (size_t i = 0; i < base::size(kDataResources); ++i) {
if (resource_name == kDataResources[i].name)
return kDataResources[i].accessible_string_id;
}
return kResourceNotFoundId;
}
void AutofillPopupLayoutModel::SetUpForTesting( void AutofillPopupLayoutModel::SetUpForTesting(
std::unique_ptr<PopupViewCommon> view_common) { std::unique_ptr<PopupViewCommon> view_common) {
view_common_ = std::move(view_common); view_common_ = std::move(view_common);
......
...@@ -86,12 +86,6 @@ class AutofillPopupLayoutModel { ...@@ -86,12 +86,6 @@ class AutofillPopupLayoutModel {
// resource isn't recognized. // resource isn't recognized.
int GetIconResourceID(const std::string& resource_name) const; int GetIconResourceID(const std::string& resource_name) const;
// Returns the string id for an accessible name which should be used to
// describe the given resource. Returns 0 if the resource isn't recognized;
// note that this doesn't necessarily mean anything went wrong, as some valid
// resources are intentionally omitted for screen readers.
int GetIconAccessibleNameResourceId(const std::string& resource_name) const;
bool is_credit_card_popup() const { return is_credit_card_popup_; } bool is_credit_card_popup() const { return is_credit_card_popup_; }
// Allows the provision of another implementation of view_common, for use in // Allows the provision of another implementation of view_common, for use in
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment