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

Issue 1367853002: Move GeolocationDispatcher into blink. (Closed)

Created:
5 years, 3 months ago by Sam McNally
Modified:
4 years, 7 months ago
CC:
Aaron Boodman, abarth-chromium, Anand Mistry (off Chromium), ben+mojo_chromium.org, blink-reviews, blink-reviews-api_chromium.org, chrome-apps-syd-reviews_chromium.org, chromium-reviews, creis+watch_chromium.org, darin (slow to review), darin-cc_chromium.org, dglazkov+blink, jam, kinuko+watch, Marijn Kruisselbrink, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, mlamouri+watch-geolocation_chromium.org, mlamouri+watch-blink_chromium.org, mvanouwerkerk+watch_chromium.org, Michael van Ouwerkerk, nasko+codewatch_chromium.org, qsr+mojo_chromium.org, Ken Rockot(use gerrit already), timvolodine, viettrungluu+watch_chromium.org, Yuki, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move GeolocationDispatcher into blink. This also changes the layout tests for geolocation to mock out the mojo interface directly from the JS layout test code, removing the need for C++ code for a mock and its control. BUG=561879 Committed: https://crrev.com/f48785c4922df0b6aa3fe1bae756f8c54eb6c899 Cr-Commit-Position: refs/heads/master@{#393452}

Patch Set 1 : mojoms in components #

Patch Set 2 : #

Patch Set 3 : fix layout tests #

Total comments: 2

Patch Set 4 : #

Total comments: 8

Patch Set 5 : #

Total comments: 40

Patch Set 6 : #

Patch Set 7 : rebase #

Patch Set 8 : #

Patch Set 9 : minus most test changes #

Total comments: 19

Patch Set 10 : rebase #

Patch Set 11 : #

Patch Set 12 : with tests for trybots #

Patch Set 13 : #

Total comments: 4

Patch Set 14 : #

Total comments: 7

Patch Set 15 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+282 lines, -2383 lines) Patch
M content/content_renderer.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
D content/renderer/geolocation_dispatcher.h View 1 2 3 4 5 6 7 8 12 1 chunk +0 lines, -67 lines 0 comments Download
D content/renderer/geolocation_dispatcher.cc View 1 2 3 4 5 6 7 8 12 1 chunk +0 lines, -157 lines 0 comments Download
M content/renderer/render_frame_impl.h View 1 2 3 4 5 6 7 8 9 4 chunks +0 lines, -6 lines 0 comments Download
M content/renderer/render_frame_impl.cc View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -8 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/dom/Geolocation/error-service-connection-error.html View 1 2 3 4 5 6 7 8 12 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/LayoutTests/fast/dom/Geolocation/error-service-connection-error-expected.txt View 1 2 3 4 1 chunk +11 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error.html View 1 2 3 4 5 6 7 8 12 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/dom/Geolocation/permission-service-connection-error-expected.txt View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A + third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js View 1 2 3 4 5 6 7 8 12 3 chunks +3 lines, -9 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/maximum-age.js View 1 2 3 4 1 chunk +79 lines, -78 lines 0 comments Download
A + third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/permission-service-connection-error.js View 1 2 3 4 5 6 7 8 12 2 chunks +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 7 chunks +41 lines, -26 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/Geolocation.cpp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 10 chunks +141 lines, -155 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/GeolocationClient.h View 1 2 3 4 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/GeolocationController.h View 1 2 3 4 1 chunk +0 lines, -94 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/GeolocationController.cpp View 1 2 3 4 1 chunk +0 lines, -193 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/GeolocationPosition.h View 1 2 3 4 1 chunk +0 lines, -111 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/testing/GeolocationClientMock.h View 1 2 3 4 1 chunk +0 lines, -102 lines 0 comments Download
D third_party/WebKit/Source/modules/geolocation/testing/GeolocationClientMock.cpp View 1 2 3 4 1 chunk +0 lines, -189 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/testing/InternalsGeolocation.h View 1 2 3 4 1 chunk +0 lines, -59 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/testing/InternalsGeolocation.cpp View 1 2 3 4 1 chunk +0 lines, -117 lines 0 comments Download
M third_party/WebKit/Source/modules/geolocation/testing/InternalsGeolocation.idl View 1 2 3 4 1 chunk +0 lines, -37 lines 0 comments Download
M third_party/WebKit/Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/AssertMatchingEnums.cpp View 1 2 3 4 5 6 7 8 9 3 chunks +0 lines, -7 lines 0 comments Download
D third_party/WebKit/Source/web/GeolocationClientProxy.h View 1 2 3 4 1 chunk +0 lines, -66 lines 0 comments Download
D third_party/WebKit/Source/web/GeolocationClientProxy.cpp View 1 2 3 4 1 chunk +0 lines, -96 lines 0 comments Download
D third_party/WebKit/Source/web/WebGeolocationController.cpp View 1 2 3 4 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/WebKit/Source/web/WebGeolocationError.cpp View 1 2 3 4 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/WebKit/Source/web/WebGeolocationPermissionRequest.cpp View 1 2 3 4 1 chunk +0 lines, -56 lines 0 comments Download
D third_party/WebKit/Source/web/WebGeolocationPermissionRequestManager.cpp View 1 2 3 4 1 chunk +0 lines, -101 lines 0 comments Download
D third_party/WebKit/Source/web/WebGeolocationPosition.cpp View 1 2 3 4 1 chunk +0 lines, -58 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.h View 1 2 3 4 5 6 2 chunks +0 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebLocalFrameImpl.cpp View 1 2 3 4 5 6 7 8 9 5 chunks +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/web/web.gypi View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -7 lines 0 comments Download
M third_party/WebKit/public/blink_headers.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/public/web/WebFrameClient.h View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -7 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationClient.h View 1 chunk +0 lines, -53 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationController.h View 1 2 3 4 1 chunk +0 lines, -62 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationError.h View 1 chunk +0 lines, -64 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationPermissionRequest.h View 1 2 3 4 1 chunk +0 lines, -61 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationPermissionRequestManager.h View 1 chunk +0 lines, -63 lines 0 comments Download
D third_party/WebKit/public/web/WebGeolocationPosition.h View 1 chunk +0 lines, -62 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 127 (99 generated)
Ken Rockot(use gerrit already)
https://codereview.chromium.org/1367853002/diff/200001/third_party/WebKit/Source/modules/BUILD.gn File third_party/WebKit/Source/modules/BUILD.gn (right): https://codereview.chromium.org/1367853002/diff/200001/third_party/WebKit/Source/modules/BUILD.gn#newcode55 third_party/WebKit/Source/modules/BUILD.gn:55: "//content/common:mojo_bindings", Looks like this is not in sync with ...
5 years, 2 months ago (2015-09-29 19:20:45 UTC) #10
Sam McNally
https://codereview.chromium.org/1367853002/diff/200001/third_party/WebKit/Source/modules/BUILD.gn File third_party/WebKit/Source/modules/BUILD.gn (right): https://codereview.chromium.org/1367853002/diff/200001/third_party/WebKit/Source/modules/BUILD.gn#newcode55 third_party/WebKit/Source/modules/BUILD.gn:55: "//content/common:mojo_bindings", On 2015/09/29 19:20:45, Ken Rockot wrote: > Looks ...
5 years, 2 months ago (2015-09-30 01:51:06 UTC) #13
Marijn Kruisselbrink
https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode96 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:96: , m_controller(new GeolocationController(this)) Unless I'm missing something, the change ...
5 years, 2 months ago (2015-09-30 19:56:55 UTC) #15
Sam McNally
https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode96 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:96: , m_controller(new GeolocationController(this)) On 2015/09/30 19:56:55, Marijn Kruisselbrink wrote: ...
5 years, 2 months ago (2015-10-01 01:54:50 UTC) #17
Marijn Kruisselbrink
https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode96 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:96: , m_controller(new GeolocationController(this)) On 2015/10/01 at 01:54:50, Sam McNally ...
5 years, 2 months ago (2015-10-01 03:36:09 UTC) #18
Sam McNally
https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/260001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode96 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:96: , m_controller(new GeolocationController(this)) On 2015/10/01 03:36:09, Marijn Kruisselbrink wrote: ...
5 years, 2 months ago (2015-10-02 05:12:38 UTC) #19
Sam McNally
+yukishiino, haraken
4 years, 11 months ago (2016-01-27 00:38:34 UTC) #54
Sam McNally
I think this is ready for a full review now. Old reviewers to cc. +mvanouwerkerk ...
4 years, 7 months ago (2016-05-03 08:01:06 UTC) #100
Michael van Ouwerkerk
Thanks Sam! This seems to be nearly 5000 lines of changes, so it might take ...
4 years, 7 months ago (2016-05-03 08:57:15 UTC) #101
Michael van Ouwerkerk
Thanks Sam, so good to see so much crufty plumbing deleted! This CL is hard ...
4 years, 7 months ago (2016-05-04 13:52:17 UTC) #102
Sam McNally
On 2016/05/04 13:52:17, Michael van Ouwerkerk wrote: > Thanks Sam, so good to see so ...
4 years, 7 months ago (2016-05-05 11:50:24 UTC) #105
Marijn Kruisselbrink
drive-by nit https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode76 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:76: ASSERT_NOT_REACHED(); ASSERT_NOT_REACHED() is deprecated in favor of ...
4 years, 7 months ago (2016-05-06 20:12:15 UTC) #106
Michael van Ouwerkerk
https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html File third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html#newcode6 third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html:6: <script src="resources/geolocation-mock.js"></script> geolocation-mock.js was removed from this CL https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp ...
4 years, 7 months ago (2016-05-09 17:22:32 UTC) #107
dcheng
https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode129 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:129: // The frame may be moving to a new ...
4 years, 7 months ago (2016-05-09 18:22:29 UTC) #109
Sam McNally
https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html File third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html#newcode6 third_party/WebKit/LayoutTests/fast/dom/Geolocation/maximum-age.html:6: <script src="resources/geolocation-mock.js"></script> On 2016/05/09 17:22:31, Michael van Ouwerkerk wrote: ...
4 years, 7 months ago (2016-05-10 10:06:09 UTC) #110
dcheng
https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode124 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:124: void Geolocation::stop() On 2016/05/10 at 10:06:08, Sam McNally wrote: ...
4 years, 7 months ago (2016-05-10 23:55:29 UTC) #111
dcheng
On 2016/05/10 at 23:55:29, dcheng wrote: > https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp > File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): > > https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode124 ...
4 years, 7 months ago (2016-05-10 23:55:55 UTC) #112
haraken
On 2016/05/10 23:55:55, dcheng wrote: > On 2016/05/10 at 23:55:29, dcheng wrote: > > > ...
4 years, 7 months ago (2016-05-11 00:05:04 UTC) #113
Michael van Ouwerkerk
lgtm with nits Thanks Sam! https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1380001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode124 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:124: void Geolocation::stop() On 2016/05/10 ...
4 years, 7 months ago (2016-05-11 12:38:30 UTC) #114
Sam McNally
https://codereview.chromium.org/1367853002/diff/1460001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js File third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js (left): https://codereview.chromium.org/1367853002/diff/1460001/third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js#oldcode24 third_party/WebKit/LayoutTests/fast/dom/Geolocation/script-tests/error-service-connection-error.js:24: shouldBe('error.TIMEOUT', '3'); On 2016/05/11 12:38:30, Michael van Ouwerkerk wrote: ...
4 years, 7 months ago (2016-05-12 07:17:20 UTC) #115
Sam McNally
esprehn: ping
4 years, 7 months ago (2016-05-13 02:49:50 UTC) #116
esprehn
lgtm https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.h File third_party/WebKit/Source/modules/geolocation/Geolocation.h (right): https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.h#newcode195 third_party/WebKit/Source/modules/geolocation/Geolocation.h:195: mojom::blink::PermissionServicePtr m_permissionService; you don't need to change it ...
4 years, 7 months ago (2016-05-13 02:59:08 UTC) #117
dcheng
https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode52 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:52: position.altitude > -10000., These checks are kind of opaque. ...
4 years, 7 months ago (2016-05-13 03:42:55 UTC) #118
dcheng
LGTM https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode52 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:52: position.altitude > -10000., On 2016/05/13 at 03:42:55, dcheng ...
4 years, 7 months ago (2016-05-13 03:43:32 UTC) #119
Sam McNally
https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp File third_party/WebKit/Source/modules/geolocation/Geolocation.cpp (right): https://codereview.chromium.org/1367853002/diff/1480001/third_party/WebKit/Source/modules/geolocation/Geolocation.cpp#newcode52 third_party/WebKit/Source/modules/geolocation/Geolocation.cpp:52: position.altitude > -10000., On 2016/05/13 03:43:32, dcheng wrote: > ...
4 years, 7 months ago (2016-05-13 05:00:30 UTC) #120
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1367853002/1500001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1367853002/1500001
4 years, 7 months ago (2016-05-13 05:14:08 UTC) #123
commit-bot: I haz the power
Committed patchset #15 (id:1500001)
4 years, 7 months ago (2016-05-13 06:01:14 UTC) #125
commit-bot: I haz the power
4 years, 7 months ago (2016-05-13 06:02:31 UTC) #127
Message was sent while issue was closed.
Patchset 15 (id:??) landed as
https://crrev.com/f48785c4922df0b6aa3fe1bae756f8c54eb6c899
Cr-Commit-Position: refs/heads/master@{#393452}

Powered by Google App Engine
This is Rietveld 408576698