Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Unified Diff: chrome/browser/views/options/passwords_page_view.cc

Issue 243054: Change ConfirmMessageBoxDialog to just be a native view (it was only windows ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/views/options/passwords_page_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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() {
« no previous file with comments | « chrome/browser/views/options/passwords_page_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698