1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "chrome/browser/ui/passwords/save_password_refusal_combobox_model.h"
7 #include "chrome/grit/generated_resources.h"
8 #include "ui/base/l10n/l10n_util.h"
10 SavePasswordRefusalComboboxModel::SavePasswordRefusalComboboxModel(
11 bool never_is_default
)
12 : never_is_default_(never_is_default
) {
13 #if !defined(OS_ANDROID)
15 l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_CANCEL_BUTTON
));
17 l10n_util::GetStringUTF16(IDS_PASSWORD_MANAGER_BLACKLIST_BUTTON
));
19 swap(items_
[0], items_
[1]);
23 SavePasswordRefusalComboboxModel::~SavePasswordRefusalComboboxModel() {}
25 int SavePasswordRefusalComboboxModel::GetItemCount() const {
29 base::string16
SavePasswordRefusalComboboxModel::GetItemAt(int index
) {
33 bool SavePasswordRefusalComboboxModel::IsItemSeparatorAt(int index
) {
34 return items_
[index
].empty();
37 int SavePasswordRefusalComboboxModel::GetDefaultIndex() const {