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

Unified Diff: chrome/browser/views/password_manager_exceptions_view.h

Issue 39313: Fix a crash in PasswordManagerExceptionsView (Closed)
Patch Set: more comments Created 11 years, 9 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 | « no previous file | chrome/browser/views/password_manager_exceptions_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/password_manager_exceptions_view.h
diff --git a/chrome/browser/views/password_manager_exceptions_view.h b/chrome/browser/views/password_manager_exceptions_view.h
index 1ae684c8f1922322f8ff44c73f5bddc1f5471913..0151a5b6dfadbf9cf7bcac5da8cf1a64d72f8f46 100644
--- a/chrome/browser/views/password_manager_exceptions_view.h
+++ b/chrome/browser/views/password_manager_exceptions_view.h
@@ -38,7 +38,8 @@ class PasswordManagerExceptionsTableModel : public PasswordManagerTableModel {
class PasswordManagerExceptionsView : public views::View,
public views::DialogDelegate,
public views::TableViewObserver,
- public views::NativeButton::Listener {
+ public views::NativeButton::Listener,
+ public PasswordManagerTableModelObserver {
public:
explicit PasswordManagerExceptionsView(Profile* profile);
virtual ~PasswordManagerExceptionsView();
@@ -68,6 +69,9 @@ class PasswordManagerExceptionsView : public views::View,
virtual void WindowClosing();
virtual views::View* GetContentsView();
+ // PasswordManagerTableModelObserver implementation.
+ virtual void OnRowCountChanged(size_t rows);
+
private:
// Wire up buttons, the model, and the table view, and query the DB for
// exception data tied to the given profile.
@@ -87,6 +91,8 @@ class PasswordManagerExceptionsView : public views::View,
views::NativeButton remove_button_;
views::NativeButton remove_all_button_;
+ static PasswordManagerExceptionsView* instance_;
+
DISALLOW_EVIL_CONSTRUCTORS(PasswordManagerExceptionsView);
};
#endif // CHROME_BROWSER_PASSWORD_MANAGER_EXCEPTIONS_VIEW_H__
« no previous file with comments | « no previous file | chrome/browser/views/password_manager_exceptions_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698