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

Issue 2091023006: Adds EngineGeolocationFeature for Blimp Geolocation project. (Closed)

Created:
4 years, 6 months ago by CJ
Modified:
4 years, 4 months ago
Reviewers:
Kevin M, Wez
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, maniscalco+watch-blimp_chromium.org, sriramsr+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, jessicag+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, dtrainor+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org, Garrett Casto
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds EngineGeolocationFeature for Blimp Geolocation project. This change provides the engine-side classes needed to receive and send geolocation messages from the client. EngineGeolocationFeature sends messages from the engine that can either indicate the client-side to start sending location messages of the specified accuracy, request a refresh of the location, or indicate that the engine side no longer is listening for updates. The EngineGeolocationFeature also receives messages from the client, which can either provide a location or indicate an error. Other changes: *Moves EmptyMessage out of tab_control.proto to common.proto BUG=614486 Committed: https://crrev.com/695c49437b5eb038e09e08c805f26ce7f7da253a Cr-Commit-Position: refs/heads/master@{#407934}

Patch Set 1 #

Total comments: 52

Patch Set 2 : Addresses kmarshall's #3 comments #

Total comments: 10

Patch Set 3 : Addresses kmarshall's #10 #

Total comments: 26

Patch Set 4 : Addresses kmarshall's #12 comments and unittests #

Patch Set 5 : Updating repo to see if try is fixed #

Total comments: 87

Patch Set 6 : Wasn't running all tests. Should all be fixed now. #

Patch Set 7 : In response to Wez's #23 comment #

Total comments: 18

Patch Set 8 : Addresses Wez's #29 comments #

Total comments: 33

Patch Set 9 : Addresses Wez's #31 comments and adds BlimpLocationProvider unittests #

Patch Set 10 : Try and Lint errors fix #

Total comments: 16

Patch Set 11 : Merge with head #

Total comments: 26

Patch Set 12 : Addresses Wez's #44 comments #

Patch Set 13 : Addresses kmarshall's #47 comments #

Patch Set 14 : Remove DLOG(FATAL)-related tests #

Total comments: 2

Patch Set 15 : Comment update #

Total comments: 16

Patch Set 16 : Addresses kmarshalls' #59 comments #

Total comments: 2

Patch Set 17 : Addresses Wez's #61 comments #

Total comments: 5

Patch Set 18 : Addresses Wez's #63 comments #

Patch Set 19 : Merge from Master #

Total comments: 4

Patch Set 20 : Merge #

Total comments: 4

Patch Set 21 : Addresses Wez's #77 comments #

Patch Set 22 : Merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+833 lines, -62 lines) Patch
M blimp/common/create_blimp_message.h View 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/common/create_blimp_message.cc View 2 chunks +8 lines, -0 lines 0 comments Download
M blimp/common/logging.cc View 1 2 3 4 5 6 7 8 2 chunks +41 lines, -0 lines 0 comments Download
M blimp/common/proto/BUILD.gn View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M blimp/common/proto/blimp_message.proto View 2 chunks +2 lines, -0 lines 0 comments Download
A + blimp/common/proto/common.proto View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -5 lines 0 comments Download
A blimp/common/proto/geolocation.proto View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +59 lines, -0 lines 0 comments Download
M blimp/common/proto/tab_control.proto View 1 2 chunks +2 lines, -2 lines 0 comments Download
M blimp/engine/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +9 lines, -0 lines 0 comments Download
M blimp/engine/app/blimp_browser_main_parts.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +2 lines, -23 lines 0 comments Download
M blimp/engine/feature/geolocation/blimp_location_provider.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 3 chunks +25 lines, -7 lines 0 comments Download
M blimp/engine/feature/geolocation/blimp_location_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +33 lines, -25 lines 0 comments Download
A blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +156 lines, -0 lines 0 comments Download
A blimp/engine/feature/geolocation/engine_geolocation_feature.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +56 lines, -0 lines 0 comments Download
A blimp/engine/feature/geolocation/engine_geolocation_feature.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +157 lines, -0 lines 0 comments Download
A blimp/engine/feature/geolocation/engine_geolocation_feature_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 1 chunk +205 lines, -0 lines 0 comments Download
A blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +40 lines, -0 lines 0 comments Download
A blimp/engine/feature/geolocation/mock_blimp_location_provider_delegate.cc View 1 2 3 4 5 6 7 8 9 1 chunk +15 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 2 chunks +4 lines, -0 lines 0 comments Download
M blimp/engine/session/blimp_engine_session.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 4 chunks +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 99 (58 generated)
CJ
Hello, Here is the preliminary CL for EngineGeolocationFeature. To be noted, unit tests are on ...
4 years, 6 months ago (2016-06-24 23:24:32 UTC) #2
Kevin M
https://codereview.chromium.org/2091023006/diff/1/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2091023006/diff/1/blimp/common/logging.cc#newcode308 blimp/common/logging.cc:308: AddField("subtype", "UPDATE_LISTEN_STATE_MESSAGE", output); Remove _MESSAGE suffix https://codereview.chromium.org/2091023006/diff/1/blimp/common/proto/geolocation.proto File blimp/common/proto/geolocation.proto ...
4 years, 5 months ago (2016-06-27 16:57:42 UTC) #3
CJ
https://codereview.chromium.org/2091023006/diff/1/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2091023006/diff/1/blimp/common/logging.cc#newcode308 blimp/common/logging.cc:308: AddField("subtype", "UPDATE_LISTEN_STATE_MESSAGE", output); On 2016/06/27 16:57:40, Kevin M wrote: ...
4 years, 5 months ago (2016-06-27 22:04:27 UTC) #5
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091023006/20001
4 years, 5 months ago (2016-06-27 22:05:50 UTC) #7
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 5 months ago (2016-06-27 23:42:59 UTC) #9
Kevin M
Getting close. https://codereview.chromium.org/2091023006/diff/1/blimp/engine/feature/geolocation/engine_geolocation_feature.h File blimp/engine/feature/geolocation/engine_geolocation_feature.h (right): https://codereview.chromium.org/2091023006/diff/1/blimp/engine/feature/geolocation/engine_geolocation_feature.h#newcode30 blimp/engine/feature/geolocation/engine_geolocation_feature.h:30: void set_geolocation_message_sender( On 2016/06/27 22:04:27, CJ wrote: ...
4 years, 5 months ago (2016-06-28 01:14:39 UTC) #10
CJ
https://codereview.chromium.org/2091023006/diff/1/blimp/engine/feature/geolocation/engine_geolocation_feature.h File blimp/engine/feature/geolocation/engine_geolocation_feature.h (right): https://codereview.chromium.org/2091023006/diff/1/blimp/engine/feature/geolocation/engine_geolocation_feature.h#newcode30 blimp/engine/feature/geolocation/engine_geolocation_feature.h:30: void set_geolocation_message_sender( On 2016/06/28 01:14:38, Kevin M wrote: > ...
4 years, 5 months ago (2016-06-29 00:12:12 UTC) #11
Kevin M
I recommend adding unit tests to the next patch, I'm seeing functional errors here that ...
4 years, 5 months ago (2016-06-29 17:52:56 UTC) #12
Wez
Hey CJ, I'll take over the review from Kevin. As he suggests, seems a good ...
4 years, 5 months ago (2016-07-01 01:30:09 UTC) #13
CJ
Hi all, There was some major restructuring needed. EngineGeolocationFeature now receives a callback, which should ...
4 years, 5 months ago (2016-07-11 23:21:09 UTC) #14
Wez
Code comments; will follow up w/ code-review of the tests. https://codereview.chromium.org/2091023006/diff/80001/blimp/64 File blimp/64 (right): https://codereview.chromium.org/2091023006/diff/80001/blimp/64#newcode1 ...
4 years, 5 months ago (2016-07-12 21:35:15 UTC) #23
CJ
https://codereview.chromium.org/2091023006/diff/80001/blimp/64 File blimp/64 (right): https://codereview.chromium.org/2091023006/diff/80001/blimp/64#newcode1 blimp/64:1: // Copyright 2016 The Chromium Authors. All rights reserved. ...
4 years, 5 months ago (2016-07-13 21:49:21 UTC) #24
Wez
https://codereview.chromium.org/2091023006/diff/80001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2091023006/diff/80001/blimp/common/logging.cc#newcode318 blimp/common/logging.cc:318: AddField("latitude", message.geolocation().location().latitude(), output); On 2016/07/13 21:49:19, CJ wrote: > ...
4 years, 5 months ago (2016-07-14 01:19:22 UTC) #29
CJ
https://codereview.chromium.org/2091023006/diff/80001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2091023006/diff/80001/blimp/common/logging.cc#newcode318 blimp/common/logging.cc:318: AddField("latitude", message.geolocation().location().latitude(), output); On 2016/07/14 01:19:21, Wez wrote: > ...
4 years, 5 months ago (2016-07-14 23:55:09 UTC) #30
Wez
Some remaining nits and test cleanup, but otherwise this is looking great. https://codereview.chromium.org/2091023006/diff/120001/blimp/common/proto/geolocation.proto File blimp/common/proto/geolocation.proto ...
4 years, 5 months ago (2016-07-15 01:46:18 UTC) #31
CJ
https://codereview.chromium.org/2091023006/diff/140001/blimp/common/logging.cc File blimp/common/logging.cc (right): https://codereview.chromium.org/2091023006/diff/140001/blimp/common/logging.cc#newcode318 blimp/common/logging.cc:318: AddField("subtype", "COORDINDATES", output); On 2016/07/15 01:46:17, Wez wrote: > ...
4 years, 5 months ago (2016-07-18 21:11:57 UTC) #32
CJ
4 years, 5 months ago (2016-07-18 21:11:58 UTC) #33
Wez
Just a few remaining nits! :D https://codereview.chromium.org/2091023006/diff/140001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2091023006/diff/140001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode23 blimp/engine/feature/geolocation/blimp_location_provider.cc:23: StopProvider(); What's the ...
4 years, 5 months ago (2016-07-18 23:55:21 UTC) #44
Kevin M
https://codereview.chromium.org/2091023006/diff/200001/blimp/common/proto/common.proto File blimp/common/proto/common.proto (right): https://codereview.chromium.org/2091023006/diff/200001/blimp/common/proto/common.proto#newcode5 blimp/common/proto/common.proto:5: // Message definitions shared between proto files. nit: between ...
4 years, 5 months ago (2016-07-19 16:01:42 UTC) #47
CJ
https://codereview.chromium.org/2091023006/diff/140001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2091023006/diff/140001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode23 blimp/engine/feature/geolocation/blimp_location_provider.cc:23: StopProvider(); On 2016/07/18 23:55:21, Wez wrote: > What's the ...
4 years, 5 months ago (2016-07-19 20:04:18 UTC) #48
CJ
4 years, 5 months ago (2016-07-19 20:04:23 UTC) #49
CJ
https://codereview.chromium.org/2091023006/diff/200001/blimp/common/proto/common.proto File blimp/common/proto/common.proto (right): https://codereview.chromium.org/2091023006/diff/200001/blimp/common/proto/common.proto#newcode5 blimp/common/proto/common.proto:5: // Message definitions shared between proto files. On 2016/07/19 ...
4 years, 5 months ago (2016-07-19 20:35:58 UTC) #50
Kevin M
lgtm This CL is really nice now. https://codereview.chromium.org/2091023006/diff/200001/blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc File blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc (right): https://codereview.chromium.org/2091023006/diff/200001/blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc#newcode25 blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc:25: new BlimpLocationProvider(delegate_->weak_factory_.GetWeakPtr())) ...
4 years, 5 months ago (2016-07-21 17:37:06 UTC) #59
CJ
https://codereview.chromium.org/2091023006/diff/200001/blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc File blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc (right): https://codereview.chromium.org/2091023006/diff/200001/blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc#newcode25 blimp/engine/feature/geolocation/blimp_location_provider_unittest.cc:25: new BlimpLocationProvider(delegate_->weak_factory_.GetWeakPtr())) {} On 2016/07/21 17:37:05, Kevin M wrote: ...
4 years, 5 months ago (2016-07-21 22:04:46 UTC) #60
Wez
LGTM once the ProcessMessage null-callback handling is fixed and the start/stopprovider question resolved. https://codereview.chromium.org/2091023006/diff/180001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc File ...
4 years, 5 months ago (2016-07-22 01:18:59 UTC) #61
CJ
https://codereview.chromium.org/2091023006/diff/180001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc File blimp/engine/feature/geolocation/engine_geolocation_feature.cc (right): https://codereview.chromium.org/2091023006/diff/180001/blimp/engine/feature/geolocation/engine_geolocation_feature.cc#newcode91 blimp/engine/feature/geolocation/engine_geolocation_feature.cc:91: DCHECK(!callback.is_null()); On 2016/07/22 01:18:58, Wez wrote: > On 2016/07/19 ...
4 years, 5 months ago (2016-07-22 20:03:30 UTC) #62
Wez
LGTM w/ the test-case and null callback check addressed. I'd suggest also adding a test ...
4 years, 5 months ago (2016-07-22 22:09:44 UTC) #63
CJ
https://codereview.chromium.org/2091023006/diff/320001/blimp/engine/feature/geolocation/blimp_location_provider.cc File blimp/engine/feature/geolocation/blimp_location_provider.cc (right): https://codereview.chromium.org/2091023006/diff/320001/blimp/engine/feature/geolocation/blimp_location_provider.cc#newcode37 blimp/engine/feature/geolocation/blimp_location_provider.cc:37: return false; On 2016/07/22 22:09:44, Wez wrote: > nit: ...
4 years, 5 months ago (2016-07-22 22:31:19 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091023006/360001
4 years, 5 months ago (2016-07-22 22:35:17 UTC) #67
commit-bot: I haz the power
Failed to apply patch for blimp/engine/app/blimp_content_browser_client.cc: While running git apply --index -3 -p1; error: patch ...
4 years, 5 months ago (2016-07-22 23:41:13 UTC) #69
Wez
https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc#newcode8 blimp/engine/session/blimp_engine_session.cc:8: #include <utility> nit: Do we need this extra include?
4 years, 4 months ago (2016-07-25 22:24:58 UTC) #70
CJ
https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc#newcode8 blimp/engine/session/blimp_engine_session.cc:8: #include <utility> On 2016/07/25 22:24:57, Wez wrote: > nit: ...
4 years, 4 months ago (2016-07-25 22:52:46 UTC) #74
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091023006/380001
4 years, 4 months ago (2016-07-25 22:54:11 UTC) #76
Wez
https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc#newcode8 blimp/engine/session/blimp_engine_session.cc:8: #include <utility> On 2016/07/25 22:52:46, CJ wrote: > On ...
4 years, 4 months ago (2016-07-25 23:06:19 UTC) #77
CJ
https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc File blimp/engine/session/blimp_engine_session.cc (right): https://codereview.chromium.org/2091023006/diff/360001/blimp/engine/session/blimp_engine_session.cc#newcode8 blimp/engine/session/blimp_engine_session.cc:8: #include <utility> On 2016/07/25 23:06:19, Wez wrote: > On ...
4 years, 4 months ago (2016-07-25 23:20:21 UTC) #78
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091023006/400001
4 years, 4 months ago (2016-07-25 23:21:21 UTC) #81
Wez
Great - thanks! On 25 July 2016 at 16:21, commit-bot@chromium.org via codereview.chromium.org <reply@chromiumcodereview-hr.appspotmail.com> wrote: > ...
4 years, 4 months ago (2016-07-25 23:57:26 UTC) #82
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/261872)
4 years, 4 months ago (2016-07-26 01:28:42 UTC) #84
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2091023006/420001
4 years, 4 months ago (2016-07-26 22:21:25 UTC) #95
commit-bot: I haz the power
Committed patchset #22 (id:420001)
4 years, 4 months ago (2016-07-26 22:26:45 UTC) #97
commit-bot: I haz the power
4 years, 4 months ago (2016-07-26 22:28:27 UTC) #99
Message was sent while issue was closed.
Patchset 22 (id:??) landed as
https://crrev.com/695c49437b5eb038e09e08c805f26ce7f7da253a
Cr-Commit-Position: refs/heads/master@{#407934}

Powered by Google App Engine
This is Rietveld 408576698