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

Unified Diff: chrome/browser/chromeos/policy/device_status_collector.cc

Issue 2192683003: Revert of Reland: Geolocation: move from content/browser to device/ (patchset #2 id:20001 of https:… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2810
Patch Set: 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: chrome/browser/chromeos/policy/device_status_collector.cc
diff --git a/chrome/browser/chromeos/policy/device_status_collector.cc b/chrome/browser/chromeos/policy/device_status_collector.cc
index efd0424806ad5317ce4c2d1b34302791db70d339..6d5f116193c7b4b03f1eb941f72a34090f92a1b7 100644
--- a/chrome/browser/chromeos/policy/device_status_collector.cc
+++ b/chrome/browser/chromeos/policy/device_status_collector.cc
@@ -320,7 +320,7 @@ DeviceStatusCollector::DeviceStatusCollector(
// The last known location is persisted in local state. This makes location
// information available immediately upon startup and avoids the need to
// reacquire the location on every user session change or browser crash.
- device::Geoposition position;
+ content::Geoposition position;
std::string timestamp_str;
int64_t timestamp;
const base::DictionaryValue* location =
@@ -430,7 +430,7 @@ void DeviceStatusCollector::UpdateReportingSettings() {
ScheduleGeolocationUpdateRequest();
} else {
geolocation_update_timer_.Stop();
- position_ = device::Geoposition();
+ position_ = content::Geoposition();
local_state_->ClearPref(prefs::kDeviceLocation);
}
@@ -1122,8 +1122,8 @@ void DeviceStatusCollector::ScheduleGeolocationUpdateRequest() {
geolocation_update_in_progress_ = true;
if (location_update_requester_.is_null()) {
- geolocation_subscription_ =
- device::GeolocationProvider::GetInstance()->AddLocationUpdateCallback(
+ geolocation_subscription_ = content::GeolocationProvider::GetInstance()->
+ AddLocationUpdateCallback(
base::Bind(&DeviceStatusCollector::ReceiveGeolocationUpdate,
weak_factory_.GetWeakPtr()),
true);
@@ -1135,7 +1135,7 @@ void DeviceStatusCollector::ScheduleGeolocationUpdateRequest() {
}
void DeviceStatusCollector::ReceiveGeolocationUpdate(
- const device::Geoposition& position) {
+ const content::Geoposition& position) {
geolocation_update_in_progress_ = false;
// Ignore update if device location reporting has since been disabled.

Powered by Google App Engine
This is Rietveld 408576698