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

Unified Diff: chrome/browser/views/options/geolocation_exceptions_view.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
« no previous file with comments | « chrome/browser/remove_rows_table_model.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/options/geolocation_exceptions_view.cc
diff --git a/chrome/browser/views/options/geolocation_exceptions_view.cc b/chrome/browser/views/options/geolocation_exceptions_view.cc
index 869fcbb7f274f9377ac5eb9c88ffeac2cb52771f..4adff3bdbab086cc42553f4657be4220e1345d56 100644
--- a/chrome/browser/views/options/geolocation_exceptions_view.cc
+++ b/chrome/browser/views/options/geolocation_exceptions_view.cc
@@ -165,12 +165,12 @@ GeolocationExceptionsTableModel::Rows
}
void GeolocationExceptionsView::UpdateButtonState() {
- remove_button_->SetEnabled(model_.CanRemoveExceptions(GetSelectedRows()));
+ remove_button_->SetEnabled(model_.CanRemoveRows(GetSelectedRows()));
remove_all_button_->SetEnabled(model_.RowCount() > 0);
}
void GeolocationExceptionsView::Remove() {
- model_.RemoveExceptions(GetSelectedRows());
+ model_.RemoveRows(GetSelectedRows());
UpdateButtonState();
}
« no previous file with comments | « chrome/browser/remove_rows_table_model.h ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698