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

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

Issue 155291: Adding a message box to confirm if the user really wants to delete all stored... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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/confirm_message_box_dialog.cc ('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 20464)
+++ chrome/browser/views/options/passwords_page_view.cc (working copy)
@@ -8,6 +8,7 @@
#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"
@@ -213,7 +214,16 @@
void PasswordsPageView::ButtonPressed(views::Button* sender) {
// Close will result in our destruction.
if (sender == &remove_all_button_) {
- table_model_.ForgetAndRemoveAllSignons();
+ bool accepted = ConfirmMessageBoxDialog::Run(
+ GetWindow()->GetNativeWindow(),
tim (not reviewing) 2009/07/14 18:34:52 I guess I should have pointed out that the 4 space
+ 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;
}
« no previous file with comments | « chrome/browser/views/confirm_message_box_dialog.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698