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

Issue 603323004: DevTools: Add geolocation override in browser (Closed)

Created:
6 years, 2 months ago by vkuzkokov
Modified:
6 years, 2 months ago
CC:
chromium-reviews, vsevik, jam, yurys, paulirish+reviews_chromium.org, darin-cc_chromium.org, devtools-reviews_chromium.org, aandrey+blink_chromium.org, pfeldman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

DevTools: Add geolocation override in browser Geolocation overrides moves from renderer to browser side. BUG=404995 Committed: https://crrev.com/e15021e8a8dab4f367629c24e29e2e8d23d38c51 Cr-Commit-Position: refs/heads/master@{#298854}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Addressed comments. Fix in PauseOrResume #

Total comments: 2

Patch Set 3 : Rebased. Expanded SetOverride description. #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -11 lines) Patch
M content/browser/devtools/protocol/page_handler.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M content/browser/devtools/protocol/page_handler.cc View 1 2 2 chunks +35 lines, -0 lines 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.h View 1 2 3 chunks +9 lines, -0 lines 0 comments Download
M content/browser/geolocation/geolocation_dispatcher_host.cc View 1 4 chunks +33 lines, -11 lines 3 comments Download

Messages

Total messages: 25 (7 generated)
vkuzkokov
6 years, 2 months ago (2014-10-03 14:43:06 UTC) #2
dgozman
This looks good. The only problem I see is that you don't immediately get the ...
6 years, 2 months ago (2014-10-06 11:03:26 UTC) #3
Michael van Ouwerkerk
https://codereview.chromium.org/603323004/diff/1/content/browser/devtools/protocol/page_handler.cc File content/browser/devtools/protocol/page_handler.cc (right): https://codereview.chromium.org/603323004/diff/1/content/browser/devtools/protocol/page_handler.cc#newcode78 content/browser/devtools/protocol/page_handler.cc:78: geolocation_host->SetOverride(geoposition.Pass()); On 2014/10/06 11:03:26, dgozman wrote: > Could |geolocation_host| ...
6 years, 2 months ago (2014-10-06 13:38:23 UTC) #5
vkuzkokov
https://codereview.chromium.org/603323004/diff/1/content/browser/devtools/protocol/page_handler.cc File content/browser/devtools/protocol/page_handler.cc (right): https://codereview.chromium.org/603323004/diff/1/content/browser/devtools/protocol/page_handler.cc#newcode67 content/browser/devtools/protocol/page_handler.cc:67: GeolocationDispatcherHost* geolocation_host = On 2014/10/06 11:03:26, dgozman wrote: > ...
6 years, 2 months ago (2014-10-06 13:48:21 UTC) #6
dgozman
devtools lgtm. We should add "omitting all the parameters emulates position unavailable" to protocol.json - ...
6 years, 2 months ago (2014-10-07 07:22:51 UTC) #7
vkuzkokov
On 2014/10/07 07:22:51, dgozman wrote: > devtools lgtm. > > We should add "omitting all ...
6 years, 2 months ago (2014-10-07 08:46:47 UTC) #9
vkuzkokov
> https://codereview.chromium.org/603323004/diff/1/content/browser/geolocation/geolocation_dispatcher_host.h > File content/browser/geolocation/geolocation_dispatcher_host.h (right): > > https://codereview.chromium.org/603323004/diff/1/content/browser/geolocation/geolocation_dispatcher_host.h#newcode34 > content/browser/geolocation/geolocation_dispatcher_host.h:34: void > SetOverride(scoped_ptr<Geoposition> geoposition); ...
6 years, 2 months ago (2014-10-07 11:43:31 UTC) #10
Michael van Ouwerkerk
On 2014/10/07 11:43:31, vkuzkokov wrote: > > > https://codereview.chromium.org/603323004/diff/1/content/browser/geolocation/geolocation_dispatcher_host.h > > File content/browser/geolocation/geolocation_dispatcher_host.h (right): > ...
6 years, 2 months ago (2014-10-08 14:25:02 UTC) #11
Michael van Ouwerkerk
lgtm https://codereview.chromium.org/603323004/diff/20001/content/browser/geolocation/geolocation_dispatcher_host.h File content/browser/geolocation/geolocation_dispatcher_host.h (right): https://codereview.chromium.org/603323004/diff/20001/content/browser/geolocation/geolocation_dispatcher_host.h#newcode33 content/browser/geolocation/geolocation_dispatcher_host.h:33: // Enables geolocation override. Please document who is ...
6 years, 2 months ago (2014-10-08 14:40:41 UTC) #12
vkuzkokov
https://codereview.chromium.org/603323004/diff/20001/content/browser/geolocation/geolocation_dispatcher_host.h File content/browser/geolocation/geolocation_dispatcher_host.h (right): https://codereview.chromium.org/603323004/diff/20001/content/browser/geolocation/geolocation_dispatcher_host.h#newcode33 content/browser/geolocation/geolocation_dispatcher_host.h:33: // Enables geolocation override. On 2014/10/08 14:40:41, Michael van ...
6 years, 2 months ago (2014-10-08 15:08:49 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603323004/40001
6 years, 2 months ago (2014-10-08 15:09:43 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_rel_swarming on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_rel_swarming/builds/21658)
6 years, 2 months ago (2014-10-08 16:26:21 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/603323004/40001
6 years, 2 months ago (2014-10-09 11:28:23 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 68479c8943e5e6e83041c7a62f970f2217bdf158
6 years, 2 months ago (2014-10-09 12:33:09 UTC) #20
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/e15021e8a8dab4f367629c24e29e2e8d23d38c51 Cr-Commit-Position: refs/heads/master@{#298854}
6 years, 2 months ago (2014-10-09 12:33:59 UTC) #21
blundell
https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocation/geolocation_dispatcher_host.cc File content/browser/geolocation/geolocation_dispatcher_host.cc (right): https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocation/geolocation_dispatcher_host.cc#newcode232 content/browser/geolocation/geolocation_dispatcher_host.cc:232: if (geoposition_override_.get()) drive-by: Naively, it seems like the code ...
6 years, 2 months ago (2014-10-21 08:44:20 UTC) #23
vkuzkokov
https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocation/geolocation_dispatcher_host.cc File content/browser/geolocation/geolocation_dispatcher_host.cc (right): https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocation/geolocation_dispatcher_host.cc#newcode232 content/browser/geolocation/geolocation_dispatcher_host.cc:232: if (geoposition_override_.get()) On 2014/10/21 08:44:20, blundell wrote: > drive-by: ...
6 years, 2 months ago (2014-10-21 11:58:27 UTC) #24
blundell
6 years, 2 months ago (2014-10-21 12:12:44 UTC) #25
Message was sent while issue was closed.
Thanks!

https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocat...
File content/browser/geolocation/geolocation_dispatcher_host.cc (right):

https://codereview.chromium.org/603323004/diff/40001/content/browser/geolocat...
content/browser/geolocation/geolocation_dispatcher_host.cc:232: if
(geoposition_override_.get())
On 2014/10/21 11:58:27, vkuzkokov wrote:
> On 2014/10/21 08:44:20, blundell wrote:
> > drive-by: Naively, it seems like the code at lines 232 and 233 should
execute
> > only when |!paused_|. Is that correct? If so, no need to do a follow-up CL;
> I'll
> > take care of it when porting this flow to the Mojo impl in
> > https://codereview.chromium.org/628773003/.
> 
> There is a check in OnLocationUpdate. This doesn't seem ot matter for your CL
> though.

Ah right, I had forgotten about that. It matters for my CL only because I wanted
to ensure that I'm correctly porting the override behavior to the Mojo impl.

Powered by Google App Engine
This is Rietveld 408576698