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

Unified Diff: chrome/browser/gtk/options/geolocation_content_exceptions_window.cc

Issue 2838037: Introduce RemoveRowTableModel interface, let GeolocationExceptionsTableModel derive from it. (Closed)
Patch Set: '' Created 10 years, 6 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
Index: chrome/browser/gtk/options/geolocation_content_exceptions_window.cc
diff --git a/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc b/chrome/browser/gtk/options/geolocation_content_exceptions_window.cc
index 79cfe2051d17be2987d48f17ee82565785371f65..e1e28e435641ea5c7643ba2ab7b95b1f07feccce 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();
}
« no previous file with comments | « chrome/browser/geolocation/geolocation_exceptions_table_model_unittest.cc ('k') | chrome/browser/remove_rows_table_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698