| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/policy/device_status_collector.h" | 5 #include "chrome/browser/chromeos/policy/device_status_collector.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/location.h" | 11 #include "base/location.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/prefs/pref_registry_simple.h" | 14 #include "base/prefs/pref_registry_simple.h" |
| 15 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 location.SetDouble(kSpeed, position.speed); | 461 location.SetDouble(kSpeed, position.speed); |
| 462 location.SetString(kTimestamp, | 462 location.SetString(kTimestamp, |
| 463 base::Int64ToString(position.timestamp.ToInternalValue())); | 463 base::Int64ToString(position.timestamp.ToInternalValue())); |
| 464 local_state_->Set(prefs::kDeviceLocation, location); | 464 local_state_->Set(prefs::kDeviceLocation, location); |
| 465 } | 465 } |
| 466 | 466 |
| 467 ScheduleGeolocationUpdateRequest(); | 467 ScheduleGeolocationUpdateRequest(); |
| 468 } | 468 } |
| 469 | 469 |
| 470 } // namespace policy | 470 } // namespace policy |
| OLD | NEW |