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

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

Issue 2835031: Rename GeolocationExceptionsView, make it more reusable. (Closed)
Patch Set: comments 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/content_filter_page_gtk.cc
diff --git a/chrome/browser/gtk/options/content_filter_page_gtk.cc b/chrome/browser/gtk/options/content_filter_page_gtk.cc
index 9c2088e33f0875c407d7c92a0cf77c7bf8246f32..29b2a52ea3f6329fb6754b37159c2f849a31ac0a 100644
--- a/chrome/browser/gtk/options/content_filter_page_gtk.cc
+++ b/chrome/browser/gtk/options/content_filter_page_gtk.cc
@@ -7,13 +7,14 @@
#include "app/l10n_util.h"
#include "chrome/browser/browser.h"
#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
+#include "chrome/browser/geolocation/geolocation_exceptions_table_model.h"
#include "chrome/browser/host_content_settings_map.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/gtk/browser_window_gtk.h"
#include "chrome/browser/gtk/gtk_chrome_link_button.h"
#include "chrome/browser/gtk/gtk_util.h"
#include "chrome/browser/gtk/options/content_exceptions_window_gtk.h"
-#include "chrome/browser/gtk/options/geolocation_content_exceptions_window.h"
+#include "chrome/browser/gtk/options/simple_content_exceptions_window.h"
#include "chrome/browser/gtk/options/options_layout_gtk.h"
#include "chrome/common/pref_names.h"
#include "chrome/common/url_constants.h"
@@ -171,9 +172,10 @@ void ContentFilterPageGtk::OnAllowToggled(GtkWidget* toggle_button) {
void ContentFilterPageGtk::OnExceptionsClicked(GtkWidget* button) {
if (content_type_ == CONTENT_SETTINGS_TYPE_GEOLOCATION) {
- GeolocationContentExceptionsWindow::ShowExceptionsWindow(
+ SimpleContentExceptionsWindow::ShowExceptionsWindow(
GTK_WINDOW(gtk_widget_get_toplevel(button)),
- profile()->GetGeolocationContentSettingsMap());
+ new GeolocationExceptionsTableModel(
+ profile()->GetGeolocationContentSettingsMap()));
return;
}
HostContentSettingsMap* settings_map =

Powered by Google App Engine
This is Rietveld 408576698