From 508d27e151318b0a2ffdc6a4089ea3613462c26d Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Thu, 1 Jul 2010 16:17:37 +0000 Subject: Introduce RemoveRowTableModel interface, let GeolocationExceptionsTableModel derive from it. No functionality change. This will be used to share the content settings exceptions dialog code between geolocation and notifications. BUG=45547 Review URL: http://codereview.chromium.org/2838037 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51370 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/gtk/options/geolocation_content_exceptions_window.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'chrome/browser/gtk') diff --git a/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc b/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc index 79cfe20..e1e28e4 100644 --- a/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc +++ b/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc @@ -141,7 +141,7 @@ void GeolocationContentExceptionsWindow::UpdateButtonState() { GeolocationExceptionsTableModel::Rows rows; GetSelectedRows(&rows); - gtk_widget_set_sensitive(remove_button_, model_->CanRemoveExceptions(rows)); + gtk_widget_set_sensitive(remove_button_, model_->CanRemoveRows(rows)); gtk_widget_set_sensitive(remove_all_button_, row_count > 0); } @@ -156,7 +156,7 @@ void GeolocationContentExceptionsWindow::GetSelectedRows( void GeolocationContentExceptionsWindow::Remove(GtkWidget* widget) { GeolocationExceptionsTableModel::Rows rows; GetSelectedRows(&rows); - model_->RemoveExceptions(rows); + model_->RemoveRows(rows); UpdateButtonState(); } -- cgit v1.1