| Index: blimp/client/session/blimp_client_session.cc
|
| diff --git a/blimp/client/session/blimp_client_session.cc b/blimp/client/session/blimp_client_session.cc
|
| index d20654f3852d1358afeb652c6e1e32ac201139f5..c39922da37afc12527fb7e9a4258387ad8f71c29 100644
|
| --- a/blimp/client/session/blimp_client_session.cc
|
| +++ b/blimp/client/session/blimp_client_session.cc
|
| @@ -19,6 +19,7 @@
|
| #include "blimp/client/core/blimp_client_switches.h"
|
| #include "blimp/client/core/contents/navigation_feature.h"
|
| #include "blimp/client/core/contents/tab_control_feature.h"
|
| +#include "blimp/client/core/geolocation/geolocation_feature.h"
|
| #include "blimp/client/core/session/client_network_components.h"
|
| #include "blimp/client/core/session/cross_thread_network_event_observer.h"
|
| #include "blimp/client/feature/ime_feature.h"
|
| @@ -30,6 +31,7 @@
|
| #include "blimp/net/blob_channel/blob_channel_receiver.h"
|
| #include "blimp/net/blob_channel/helium_blob_receiver_delegate.h"
|
| #include "blimp/net/thread_pipe_manager.h"
|
| +#include "device/geolocation/rate_limiting_location_provider_proxy.h"
|
| #include "url/gurl.h"
|
|
|
| namespace blimp {
|
| @@ -37,6 +39,8 @@ namespace client {
|
|
|
| BlimpClientSession::BlimpClientSession(const GURL& assigner_endpoint)
|
| : io_thread_("BlimpIOThread"),
|
| + geolocation_feature_(new GeolocationFeature(
|
| + base::MakeUnique<device::RateLimitingLocationProviderProxy>())),
|
| tab_control_feature_(new TabControlFeature),
|
| navigation_feature_(new NavigationFeature),
|
| ime_feature_(new ImeFeature),
|
| @@ -127,6 +131,9 @@ void BlimpClientSession::RegisterFeatures() {
|
| settings_feature_.get()));
|
| thread_pipe_manager_->RegisterFeature(BlimpMessage::kBlobChannel,
|
| blob_delegate_);
|
| + geolocation_feature_->set_outgoing_message_processor(
|
| + thread_pipe_manager_->RegisterFeature(BlimpMessage::kGeolocation,
|
| + geolocation_feature_.get()));
|
|
|
| // Client will not send send any RenderWidget messages, so don't save the
|
| // outgoing BlimpMessageProcessor in the RenderWidgetFeature.
|
|
|