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

Unified Diff: blimp/engine/session/blimp_engine_session.cc

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try and Lint errors fix Created 4 years, 5 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: blimp/engine/session/blimp_engine_session.cc
diff --git a/blimp/engine/session/blimp_engine_session.cc b/blimp/engine/session/blimp_engine_session.cc
index 70134b671f01cbcba85f928a93333bf16cd2911b..29c1c46de114408b61dda156d40f391ab1dbc1d8 100644
--- a/blimp/engine/session/blimp_engine_session.cc
+++ b/blimp/engine/session/blimp_engine_session.cc
@@ -292,6 +292,10 @@ void BlimpEngineSession::Initialize() {
engine_config_->client_token()));
}
+EngineGeolocationFeature* BlimpEngineSession::GetGeolocationFeature() {
+ return &geolocation_feature_;
+}
+
void BlimpEngineSession::GetEnginePortForTesting(
const GetPortCallback& callback) {
content::BrowserThread::PostTaskAndReplyWithResult(
@@ -324,6 +328,9 @@ void BlimpEngineSession::RegisterFeatures() {
render_widget_feature_.set_ime_message_sender(
thread_pipe_manager_->RegisterFeature(BlimpMessage::kIme,
&render_widget_feature_));
+ geolocation_feature_.set_outgoing_message_processor(
+ thread_pipe_manager_->RegisterFeature(BlimpMessage::kGeolocation,
+ &geolocation_feature_));
blob_delegate_->set_outgoing_message_processor(
thread_pipe_manager_->RegisterFeature(BlimpMessage::kBlobChannel,
blob_delegate_));

Powered by Google App Engine
This is Rietveld 408576698