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

Issue 8463022: Make chrome communicate with gpsd through libgps/shared memory (Closed)

Created:
9 years, 1 month ago by Yufeng Shen (Slow to review)
Modified:
9 years, 1 month ago
Reviewers:
kliegs, joth, rharrison
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., jam, dpranke-watch+content_chromium.org
Visibility:
Public.

Description

Make chrome communicate with gpsd through libgps/shared memory Update gps.h header to 3.1 version to have shared memory export libgps APIs. Adapt libgps_wrapper_linux to use shared memory to communicate with gpsd. We enable the libgps support on ChromeOS and drop the support on destkop linux for now due to the fact that we can't control what gpsd version will be present on the desktop system and the gps data written to shared memory by gpsd maybe not be compatible with what chrome/libgps is expecting. If there is demand for desktop libgps support we can add it back and investigate on using socket interface between libgps and gpsd. BUG=103751 TEST=run "tools/checklicenses/checklicenses.py third_party/gpsd/" and make sure no license violation. content_unittests --gtest_filter="*Gps*" and make sure all unittests pass Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109736

Patch Set 1 #

Patch Set 2 : fixing nits #

Total comments: 24

Patch Set 3 : addressing joth@ 's comments #

Total comments: 2

Patch Set 4 : putting libgps version string into anon namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2045 lines, -1439 lines) Patch
M content/browser/geolocation/gps_location_provider_linux.h View 2 chunks +14 lines, -0 lines 0 comments Download
M content/browser/geolocation/gps_location_provider_linux.cc View 1 2 3 chunks +13 lines, -9 lines 0 comments Download
M content/browser/geolocation/gps_location_provider_unittest_linux.cc View 1 2 7 chunks +80 lines, -58 lines 0 comments Download
D content/browser/geolocation/libgps_2_94_wrapper_linux.cc View 1 2 1 chunk +0 lines, -53 lines 0 comments Download
M content/browser/geolocation/libgps_wrapper_linux.h View 1 2 1 chunk +18 lines, -70 lines 0 comments Download
M content/browser/geolocation/libgps_wrapper_linux.cc View 1 2 3 2 chunks +104 lines, -131 lines 0 comments Download
M content/content_browser.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/gpsd/README.chromium View 1 chunk +7 lines, -6 lines 0 comments Download
D third_party/gpsd/release-2.94/gps.h View 1 chunk +0 lines, -1111 lines 0 comments Download
A third_party/gpsd/release-3.1/gps.h View 1 chunk +1809 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
joth
LG, thanks for handling this up. http://codereview.chromium.org/8463022/diff/2001/content/browser/geolocation/libgps_wrapper_linux.cc File content/browser/geolocation/libgps_wrapper_linux.cc (right): http://codereview.chromium.org/8463022/diff/2001/content/browser/geolocation/libgps_wrapper_linux.cc#newcode33 content/browser/geolocation/libgps_wrapper_linux.cc:33: CHECK_EQ(0, err) << ...
9 years, 1 month ago (2011-11-11 18:40:40 UTC) #1
Yufeng Shen (Slow to review)
http://codereview.chromium.org/8463022/diff/2001/content/browser/geolocation/libgps_wrapper_linux.cc File content/browser/geolocation/libgps_wrapper_linux.cc (right): http://codereview.chromium.org/8463022/diff/2001/content/browser/geolocation/libgps_wrapper_linux.cc#newcode33 content/browser/geolocation/libgps_wrapper_linux.cc:33: CHECK_EQ(0, err) << "Error closing dl handle: " << ...
9 years, 1 month ago (2011-11-11 21:11:35 UTC) #2
joth
LGTM http://codereview.chromium.org/8463022/diff/3010/content/browser/geolocation/libgps_wrapper_linux.cc File content/browser/geolocation/libgps_wrapper_linux.cc (right): http://codereview.chromium.org/8463022/diff/3010/content/browser/geolocation/libgps_wrapper_linux.cc#newcode17 content/browser/geolocation/libgps_wrapper_linux.cc:17: const char LIBGPS_VERSION[] = "libgps.so.20"; write this is: ...
9 years, 1 month ago (2011-11-11 21:24:17 UTC) #3
Yufeng Shen (Slow to review)
http://codereview.chromium.org/8463022/diff/3010/content/browser/geolocation/libgps_wrapper_linux.cc File content/browser/geolocation/libgps_wrapper_linux.cc (right): http://codereview.chromium.org/8463022/diff/3010/content/browser/geolocation/libgps_wrapper_linux.cc#newcode17 content/browser/geolocation/libgps_wrapper_linux.cc:17: const char LIBGPS_VERSION[] = "libgps.so.20"; On 2011/11/11 21:24:17, joth ...
9 years, 1 month ago (2011-11-11 21:35:03 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/8463022/5004
9 years, 1 month ago (2011-11-11 21:38:31 UTC) #5
commit-bot: I haz the power
9 years, 1 month ago (2011-11-12 00:21:55 UTC) #6
Change committed as 109736

Powered by Google App Engine
This is Rietveld 408576698