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

Unified Diff: content/child/child_thread.cc

Issue 476293002: Pass through geofencing API calls to the browser process. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 6 years, 3 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/child/child_thread.cc
diff --git a/content/child/child_thread.cc b/content/child/child_thread.cc
index a9a2fb6a6831ed959d5c0f7575b5241ceb2008f9..5b0c59d6ce2d3397e974dbbb3c7184eb1dfc1b1c 100644
--- a/content/child/child_thread.cc
+++ b/content/child/child_thread.cc
@@ -32,6 +32,7 @@
#include "content/child/child_shared_bitmap_manager.h"
#include "content/child/fileapi/file_system_dispatcher.h"
#include "content/child/fileapi/webfilesystem_impl.h"
+#include "content/child/geofencing/geofencing_message_filter.h"
#include "content/child/mojo/mojo_application.h"
#include "content/child/power_monitor_broadcast_source.h"
#include "content/child/quota_dispatcher.h"
@@ -291,11 +292,15 @@ void ChildThread::Init(const Options& options) {
quota_dispatcher_.reset(new QuotaDispatcher(thread_safe_sender_.get(),
quota_message_filter_.get()));
+ geofencing_message_filter_ =
+ new GeofencingMessageFilter(thread_safe_sender_.get());
+
channel_->AddFilter(histogram_message_filter_.get());
channel_->AddFilter(sync_message_filter_.get());
channel_->AddFilter(resource_message_filter_.get());
channel_->AddFilter(quota_message_filter_->GetFilter());
channel_->AddFilter(service_worker_message_filter_->GetFilter());
+ channel_->AddFilter(geofencing_message_filter_->GetFilter());
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kSingleProcess)) {

Powered by Google App Engine
This is Rietveld 408576698