| Index: chrome/browser/views/options/passwords_page_view.cc
|
| ===================================================================
|
| --- chrome/browser/views/options/passwords_page_view.cc (revision 27503)
|
| +++ chrome/browser/views/options/passwords_page_view.cc (working copy)
|
| @@ -8,7 +8,6 @@
|
| #include "base/string_util.h"
|
| #include "chrome/browser/password_manager/password_store.h"
|
| #include "chrome/browser/profile.h"
|
| -#include "chrome/browser/views/confirm_message_box_dialog.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/common/pref_service.h"
|
| #include "grit/generated_resources.h"
|
| @@ -215,16 +214,12 @@
|
| views::Button* sender, const views::Event& event) {
|
| // Close will result in our destruction.
|
| if (sender == &remove_all_button_) {
|
| - bool accepted = ConfirmMessageBoxDialog::Run(
|
| + ConfirmMessageBoxDialog::Run(
|
| GetWindow()->GetNativeWindow(),
|
| + this,
|
| l10n_util::GetString(IDS_PASSWORDS_PAGE_VIEW_TEXT_DELETE_ALL_PASSWORDS),
|
| l10n_util::GetString(
|
| IDS_PASSWORDS_PAGE_VIEW_CAPTION_DELETE_ALL_PASSWORDS));
|
| -
|
| - if (accepted) {
|
| - // Delete all the Passwords shown.
|
| - table_model_.ForgetAndRemoveAllSignons();
|
| - }
|
| return;
|
| }
|
|
|
| @@ -256,6 +251,10 @@
|
| remove_all_button_.SetEnabled(rows > 0);
|
| }
|
|
|
| +void PasswordsPageView::OnConfirmMessageAccept() {
|
| + table_model_.ForgetAndRemoveAllSignons();
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
| // PasswordsPageView, protected
|
| void PasswordsPageView::InitControlLayout() {
|
|
|