Add GeoLanguageProvider interface.
Original author: amoylan@chromium.org Original cl: https://chromium-review.googlesource.com/c/chromium/src/+/706439 This CL adds the GeoLanguageProvider browser singleton as described in the design doc: https://docs.google.com/document/d/18WqVHz5F9vaUiE32E8Ge6QHmku2QSJKvlqB9JjnIM-g This interface provides a list of language codes corresponding to local languages based on the device's approximate geolocation derived from its public IP address, using the PublicIpAddressGeolocator service. IP geolocation updates are requested no more often than every 24 hours. This singleton is started up after Profile init in PreMainMessageLoopRun. The startup runs on a background task runner, connecting & subscribing to the IP geolocation service. Startup is gated on the Feature setting "GeoLanguage" which is false for now. Bug: 76915 Change-Id: I9af2b1375fabda3d029ca396043b9195acab7cf0 Reviewed-on: https://chromium-review.googlesource.com/807884 Commit-Queue: Renjie Liu <renjieliu@chromium.org> Reviewed-by:Miguel Casas <mcasas@chromium.org> Reviewed-by:
Zhongyi Shi <zhongyi@chromium.org> Reviewed-by:
Colin Blundell <blundell@chromium.org> Cr-Commit-Position: refs/heads/master@{#523709}
Showing
Please register or sign in to comment