Commit 62fa871f authored by Miyoung Shin's avatar Miyoung Shin Committed by Commit Bot

Convert PublicIpAddressGeolocationProvider to new Mojo types

This CL converts PublicIpAddressGeolocationProviderPtr in
components to the new Mojo type.

Bug: 955171
Change-Id: I92b9e37fbdeb105893c45a99952e430e7b11b9c2
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1809198Reviewed-by: default avatarOksana Zhuravlova <oksamyt@chromium.org>
Reviewed-by: default avatarColin Blundell <blundell@chromium.org>
Commit-Queue: Miyoung Shin <myid.shin@igalia.com>
Cr-Commit-Position: refs/heads/master@{#697634}
parent e8cd34ee
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
#include "components/language/content/browser/language_code_locator_provider.h" #include "components/language/content/browser/language_code_locator_provider.h"
#include "components/prefs/pref_registry_simple.h" #include "components/prefs/pref_registry_simple.h"
#include "components/prefs/pref_service.h" #include "components/prefs/pref_service.h"
#include "mojo/public/cpp/bindings/remote.h"
#include "net/traffic_annotation/network_traffic_annotation.h" #include "net/traffic_annotation/network_traffic_annotation.h"
#include "services/device/public/mojom/constants.mojom.h" #include "services/device/public/mojom/constants.mojom.h"
#include "services/device/public/mojom/geoposition.mojom.h" #include "services/device/public/mojom/geoposition.mojom.h"
...@@ -105,9 +106,11 @@ void GeoLanguageProvider::BindIpGeolocationService() { ...@@ -105,9 +106,11 @@ void GeoLanguageProvider::BindIpGeolocationService() {
DCHECK(!geolocation_provider_.is_bound()); DCHECK(!geolocation_provider_.is_bound());
// Bind a PublicIpAddressGeolocationProvider. // Bind a PublicIpAddressGeolocationProvider.
device::mojom::PublicIpAddressGeolocationProviderPtr ip_geolocation_provider; mojo::Remote<device::mojom::PublicIpAddressGeolocationProvider>
service_manager_connector_->BindInterface( ip_geolocation_provider;
device::mojom::kServiceName, mojo::MakeRequest(&ip_geolocation_provider)); service_manager_connector_->Connect(
device::mojom::kServiceName,
ip_geolocation_provider.BindNewPipeAndPassReceiver());
net::PartialNetworkTrafficAnnotationTag partial_traffic_annotation = net::PartialNetworkTrafficAnnotationTag partial_traffic_annotation =
net::DefinePartialNetworkTrafficAnnotation("geo_language_provider", net::DefinePartialNetworkTrafficAnnotation("geo_language_provider",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment