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

Issue 5984001: Client-based geolocation refactoring. (Closed)

Created:
10 years ago by John Knottenbelt
Modified:
9 years, 7 months ago
Reviewers:
bulach
CC:
chromium-reviews, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Client-based geolocation refactoring. Remove unnecessary double->Int64->double conversion. Conditionally Disable GeolocationPermissionContextTests.StopUpdating for client-based geolocation. BUG=59907 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=69538

Patch Set 1 #

Total comments: 1

Patch Set 2 : git cl tree #

Unified diffs Side-by-side diffs Delta from patch set Stats (+17 lines, -2 lines) Patch
M chrome/browser/geolocation/geolocation_permission_context_unittest.cc View 1 1 chunk +8 lines, -1 line 0 comments Download
M chrome/chrome_tests.gypi View 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/renderer/geolocation_dispatcher.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 2 (0 generated)
John Knottenbelt
Minor fixes to the geolocation refactoring code. Still behind a flag at this point.
10 years ago (2010-12-17 09:58:22 UTC) #1
bulach
10 years ago (2010-12-17 11:19:47 UTC) #2
LGTM

one suggestion below that you may want to use provided the code still compiles
under that flag (otherwise, keep as is to prevent compiling, but add a TODO to
remove the test).

http://codereview.chromium.org/5984001/diff/1/chrome/browser/geolocation/geol...
File chrome/browser/geolocation/geolocation_permission_context_unittest.cc
(right):

http://codereview.chromium.org/5984001/diff/1/chrome/browser/geolocation/geol...
chrome/browser/geolocation/geolocation_permission_context_unittest.cc:294:
TEST_F(GeolocationPermissionContextTests, StopUpdating) {
the way we normally disable tests is:

// TODO(jknotten): remove this test once we fully switch to client-based. 
#if defined(ENABLE_CLIENT_BASED_GEOLOCATION)
#define MAYBE_StopUpdating StopUpdating
#else
#define MAYBE_StopUpdating DISABLED_StopUpdating
#endif
TEST_F(GeolocationPermissionContextTests, MAYBE_StopUpdating) {

Powered by Google App Engine
This is Rietveld 408576698