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

Issue 10103029: Add device location reporting (Closed)

Created:
8 years, 8 months ago by bartfab (slow)
Modified:
8 years, 7 months ago
CC:
chromium-reviews, stevenjb+watch_chromium.org, nkostylev+watch_chromium.org, davemoore+watch_chromium.org, John Knottenbelt, bulach
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Add device location reporting This CL implements device location reporting for Enterprise-enrolled Chrome OS devices. The position is determined using the existing Chrome geolocation stack. This CL depends on https://chromiumcodereview.appspot.com/10344016/ ISSUE=chromium-os:18710 TEST=unit_tests including new DeviceStatusCollectorTest.Location Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=135348

Patch Set 1 : #

Total comments: 27

Patch Set 2 : Comments addressed. #

Total comments: 20

Patch Set 3 : Comments addressed. Also added lots of includes to IWYU. #

Total comments: 20

Patch Set 4 : Jonathan's and Joao's comments addressed. #

Patch Set 5 : Forgot to exclude CrOS-only sources from build on other OSes. #

Total comments: 2

Patch Set 6 : New implementation on top of a new content geolocation API. #

Total comments: 20

Patch Set 7 : Nits addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+484 lines, -121 lines) Patch
M chrome/browser/chromeos/cros_settings_names.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/cros_settings_names.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/device_settings_provider.cc View 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/chromeos/login/version_info_updater.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/chromeos/stub_cros_settings_provider.cc View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/policy/browser_policy_connector.cc View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/policy/device_status_collector.h View 1 2 3 4 5 6 8 chunks +42 lines, -3 lines 0 comments Download
M chrome/browser/policy/device_status_collector.cc View 1 2 3 4 5 6 15 chunks +168 lines, -16 lines 0 comments Download
M chrome/browser/policy/device_status_collector_unittest.cc View 1 2 3 4 5 6 16 chunks +204 lines, -83 lines 0 comments Download
M chrome/browser/policy/proto/device_management_backend.proto View 1 2 chunks +41 lines, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 1 chunk +1 line, -2 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 1 chunk +5 lines, -9 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
bartfab (slow)
8 years, 8 months ago (2012-04-17 09:58:56 UTC) #1
bartfab (slow)
Hi Joao, John, Nikita, could you review the parts of this CL that touch upon ...
8 years, 8 months ago (2012-04-19 19:38:14 UTC) #2
Joao da Silva
https://chromiumcodereview.appspot.com/10103029/diff/2001/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): https://chromiumcodereview.appspot.com/10103029/diff/2001/chrome/browser/policy/device_status_collector.cc#newcode59 chrome/browser/policy/device_status_collector.cc:59: class DeviceStatusLocationHelper : public GeolocationObserver { I'd move this ...
8 years, 8 months ago (2012-04-20 09:49:57 UTC) #3
Nikita (slow)
chromeos/login lgtm You'll need owners approval for chromeos/* code.
8 years, 8 months ago (2012-04-20 11:44:42 UTC) #4
John Knottenbelt
content/browser/geolocation lgtm (one inline comment) https://chromiumcodereview.appspot.com/10103029/diff/2001/content/browser/geolocation/geolocation_provider.h File content/browser/geolocation/geolocation_provider.h (right): https://chromiumcodereview.appspot.com/10103029/diff/2001/content/browser/geolocation/geolocation_provider.h#newcode60 content/browser/geolocation/geolocation_provider.h:60: friend struct DefaultSingletonTraits<GeolocationProvider>; Agree. ...
8 years, 8 months ago (2012-04-20 12:50:42 UTC) #5
bartfab (slow)
https://chromiumcodereview.appspot.com/10103029/diff/2001/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): https://chromiumcodereview.appspot.com/10103029/diff/2001/chrome/browser/policy/device_status_collector.cc#newcode59 chrome/browser/policy/device_status_collector.cc:59: class DeviceStatusLocationHelper : public GeolocationObserver { On 2012/04/20 09:49:57, ...
8 years, 8 months ago (2012-04-20 14:10:15 UTC) #6
bartfab (slow)
All comments addressed. I also modified the GeolocationProvider so that it is aware that the ...
8 years, 8 months ago (2012-04-20 14:16:48 UTC) #7
Joao da Silva
lgtm. The chromeos/ stuff was created by Julian and we're quite familiar with it, so ...
8 years, 8 months ago (2012-04-20 14:21:09 UTC) #8
bartfab (slow)
http://codereview.chromium.org/10103029/diff/5057/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): http://codereview.chromium.org/10103029/diff/5057/chrome/browser/policy/device_status_collector.cc#newcode11 chrome/browser/policy/device_status_collector.cc:11: #include "chrome/browser/policy/device_status_location_helper.h" On 2012/04/20 14:21:09, Joao da Silva wrote: ...
8 years, 8 months ago (2012-04-23 09:48:54 UTC) #9
bartfab (slow)
All comments so far are addressed. Jonathan, when you get a chance, could you have ...
8 years, 8 months ago (2012-04-23 09:52:30 UTC) #10
joth
I only read the geolocation provider side of it, but lgtm for those files. small ...
8 years, 8 months ago (2012-04-23 10:05:14 UTC) #11
Joao da Silva
Still looks good to me, just a couple nits left. http://codereview.chromium.org/10103029/diff/13007/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): http://codereview.chromium.org/10103029/diff/13007/chrome/browser/policy/device_status_collector.cc#newcode308 ...
8 years, 8 months ago (2012-04-23 10:19:57 UTC) #12
bartfab (slow)
http://codereview.chromium.org/10103029/diff/5057/chrome/browser/policy/device_status_location_helper.cc File chrome/browser/policy/device_status_location_helper.cc (right): http://codereview.chromium.org/10103029/diff/5057/chrome/browser/policy/device_status_location_helper.cc#newcode28 chrome/browser/policy/device_status_location_helper.cc:28: if (location->GetDouble("latitude", &position.latitude) && On 2012/04/23 10:05:14, joth wrote: ...
8 years, 8 months ago (2012-04-23 12:21:27 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10103029/24001
8 years, 8 months ago (2012-04-23 15:01:42 UTC) #14
commit-bot: I haz the power
Try job failure for 10103029-24001 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-23 15:19:55 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10103029/34002
8 years, 8 months ago (2012-04-23 15:26:16 UTC) #16
commit-bot: I haz the power
Try job failure for 10103029-34002 (retry) on mac_rel for step "check_deps". It's a second try, ...
8 years, 8 months ago (2012-04-23 16:05:27 UTC) #17
joth
http://codereview.chromium.org/10103029/diff/34002/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): http://codereview.chromium.org/10103029/diff/34002/chrome/browser/policy/device_status_collector.cc#newcode27 chrome/browser/policy/device_status_collector.cc:27: #include "content/browser/geolocation/geolocation_provider.h" I think this is causing the check-deps ...
8 years, 8 months ago (2012-04-23 16:10:33 UTC) #18
bartfab (slow)
http://codereview.chromium.org/10103029/diff/34002/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): http://codereview.chromium.org/10103029/diff/34002/chrome/browser/policy/device_status_collector.cc#newcode27 chrome/browser/policy/device_status_collector.cc:27: #include "content/browser/geolocation/geolocation_provider.h" Yes, I spotted that too. Will ping ...
8 years, 8 months ago (2012-04-23 16:17:48 UTC) #19
bartfab (slow)
Hi Joao, Nikita, Could you please review this new implementation of the CL? The previous ...
8 years, 7 months ago (2012-05-03 14:15:37 UTC) #20
Joao da Silva
https://chromiumcodereview.appspot.com/10103029/diff/38002/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): https://chromiumcodereview.appspot.com/10103029/diff/38002/chrome/browser/policy/device_status_collector.cc#newcode105 chrome/browser/policy/device_status_collector.cc:105: if (location->GetDouble("latitude", &position.latitude) && It'd be nicer to use ...
8 years, 7 months ago (2012-05-03 19:04:08 UTC) #21
bartfab (slow)
https://chromiumcodereview.appspot.com/10103029/diff/38002/chrome/browser/policy/device_status_collector.cc File chrome/browser/policy/device_status_collector.cc (right): https://chromiumcodereview.appspot.com/10103029/diff/38002/chrome/browser/policy/device_status_collector.cc#newcode105 chrome/browser/policy/device_status_collector.cc:105: if (location->GetDouble("latitude", &position.latitude) && On 2012/05/03 19:04:08, Joao da ...
8 years, 7 months ago (2012-05-04 09:14:57 UTC) #22
Joao da Silva
lgtm
8 years, 7 months ago (2012-05-04 09:23:17 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10103029/47002
8 years, 7 months ago (2012-05-04 13:57:28 UTC) #24
commit-bot: I haz the power
8 years, 7 months ago (2012-05-04 15:34:06 UTC) #25
Change committed as 135348

Powered by Google App Engine
This is Rietveld 408576698