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

Unified Diff: chrome/browser/views/options/content_filter_page_view.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/views/options/content_filter_page_view.cc
diff --git a/chrome/browser/views/options/content_filter_page_view.cc b/chrome/browser/views/options/content_filter_page_view.cc
index 58f7c63484a52a1a61b325abfbc176db0c5145f9..986392e7f23e45f3e84dcab58dace3528fd1389c 100644
--- a/chrome/browser/views/options/content_filter_page_view.cc
+++ b/chrome/browser/views/options/content_filter_page_view.cc
@@ -6,9 +6,10 @@
#include "app/l10n_util.h"
#include "chrome/browser/geolocation/geolocation_content_settings_map.h"
+#include "chrome/browser/geolocation/geolocation_exceptions_table_model.h"
#include "chrome/browser/profile.h"
#include "chrome/browser/views/options/exceptions_view.h"
-#include "chrome/browser/views/options/geolocation_exceptions_view.h"
+#include "chrome/browser/views/options/simple_content_exceptions_view.h"
#include "grit/generated_resources.h"
#include "views/controls/button/radio_button.h"
#include "views/grid_layout.h"
@@ -155,9 +156,10 @@ void ContentFilterPageView::ButtonPressed(views::Button* sender,
const views::Event& event) {
if (sender == exceptions_button_) {
if (content_type_ == CONTENT_SETTINGS_TYPE_GEOLOCATION) {
- GeolocationExceptionsView::ShowExceptionsWindow(
+ SimpleContentExceptionsView::ShowExceptionsWindow(
GetWindow()->GetNativeWindow(),
- profile()->GetGeolocationContentSettingsMap());
+ new GeolocationExceptionsTableModel(
+ profile()->GetGeolocationContentSettingsMap()));
} else {
ExceptionsView::ShowExceptionsWindow(GetWindow()->GetNativeWindow(),
profile()->GetHostContentSettingsMap(), content_type_);

Powered by Google App Engine
This is Rietveld 408576698