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

Unified Diff: content/browser/geolocation/geolocation_dispatcher_host.cc

Issue 142923005: Allow MessageFilters to restrict listening to specific message classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Working patch Created 6 years, 10 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: content/browser/geolocation/geolocation_dispatcher_host.cc
diff --git a/content/browser/geolocation/geolocation_dispatcher_host.cc b/content/browser/geolocation/geolocation_dispatcher_host.cc
index e461e63464df619e0219e79c9dd8bb804c95b9c9..9b9ccad368ffda5f361744f2884343a05758fa0c 100644
--- a/content/browser/geolocation/geolocation_dispatcher_host.cc
+++ b/content/browser/geolocation/geolocation_dispatcher_host.cc
@@ -21,6 +21,10 @@
namespace content {
namespace {
+const uint32 kFilteredMessageClasses[] = {
+ GeolocationMsgStart,
+};
+
void NotifyGeolocationProviderPermissionGranted() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
GeolocationProviderImpl::GetInstance()->UserDidOptIntoLocationServices();
@@ -295,8 +299,9 @@ GeolocationDispatcherHost* GeolocationDispatcherHost::New(
geolocation_permission_context);
}
-GeolocationDispatcherHost::GeolocationDispatcherHost() {
-}
+GeolocationDispatcherHost::GeolocationDispatcherHost()
+ : BrowserMessageFilter(
+ kFilteredMessageClasses, arraysize(kFilteredMessageClasses)) {}
GeolocationDispatcherHost::~GeolocationDispatcherHost() {
}

Powered by Google App Engine
This is Rietveld 408576698