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

Issue 2129313002: Geolocation cleanup: corrects uses of content::AccessTokenStore* and net::URLRequestContextGetter* (Closed)

Created:
4 years, 5 months ago by mcasas
Modified:
4 years, 5 months ago
Reviewers:
jam, Wez, CJ
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, mlamouri+watch-geolocation_chromium.org, Peter Beverloo, lcwu+watch_chromium.org, jam, darin-cc_chromium.org, halliwell+watch_chromium.org, Michael van Ouwerkerk, alokp+watch_chromium.org, android-webview-reviews_chromium.org, jochen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Geolocation cleanup: corrects uses of content::AccessTokenStore* and net::URLRequestContextGetter* This CL corrects uses of content::AccessTokenStore* to scoped_refptr<> versions, since that class is ref-counted. Same applies toc* . Also this CL does some cleanups in the touched files: - s/NULL/nullptr/ - makes const and/or preferred initialize over assignment for some member variables, where applicable/available, - method ::GetAccessTokenStore() is made private. - NewSystemLocationProvider(); is changed to return std::unique_ptr<> TEST=all relevant unittests and browser_tests working, in particular ./out/gn/browser_tests --gtest_filter="Geolocation*" ./out/gn/content_unittests --gtest_filter=Geolocation* CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_site_isolation BUG=623114 Committed: https://crrev.com/1161c5753adf296ea253d56f1617d3d926152b55 Cr-Commit-Position: refs/heads/master@{#406410}

Patch Set 1 : #

Total comments: 7

Patch Set 2 : wez@ comments. Rebase #

Total comments: 16

Patch Set 3 : wez@ second round of comments, with a minor rebase #

Total comments: 8

Patch Set 4 : wez@s comments; removed unused struct in access_token_store_browsertest.cc #

Total comments: 2

Patch Set 5 : Removed StartTestStepFromClientThread() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+125 lines, -143 lines) Patch
M android_webview/browser/aw_content_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/access_token_store_browsertest.cc View 1 2 3 4 7 chunks +15 lines, -30 lines 0 comments Download
M chromecast/browser/cast_content_browser_client.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M content/browser/geolocation/fake_access_token_store.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/geolocation/location_arbitrator_impl.h View 1 5 chunks +10 lines, -9 lines 0 comments Download
M content/browser/geolocation/location_arbitrator_impl.cc View 1 2 3 6 chunks +14 lines, -13 lines 0 comments Download
M content/browser/geolocation/location_arbitrator_impl_unittest.cc View 1 2 5 chunks +14 lines, -17 lines 0 comments Download
M content/browser/geolocation/location_provider_android.cc View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M content/browser/geolocation/network_location_provider.h View 1 5 chunks +11 lines, -12 lines 0 comments Download
M content/browser/geolocation/network_location_provider.cc View 1 2 3 8 chunks +13 lines, -14 lines 0 comments Download
M content/browser/geolocation/network_location_provider_unittest.cc View 1 2 13 chunks +23 lines, -26 lines 0 comments Download
M content/browser/geolocation/network_location_request.h View 1 2 chunks +6 lines, -5 lines 0 comments Download
M content/browser/geolocation/network_location_request.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M content/public/browser/access_token_store.h View 1 2 chunks +3 lines, -5 lines 0 comments Download
M content/public/browser/geolocation_delegate.h View 2 chunks +2 lines, -3 lines 0 comments Download
M content/public/browser/geolocation_delegate.cc View 2 chunks +3 lines, -1 line 0 comments Download
M content/shell/browser/shell_content_browser_client.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 52 (26 generated)
mcasas
wez@/lethalantidote@ PTAL
4 years, 5 months ago (2016-07-11 21:08:50 UTC) #6
mcasas
ping (easy CL).
4 years, 5 months ago (2016-07-12 20:50:31 UTC) #7
CJ
lgtm
4 years, 5 months ago (2016-07-12 21:03:39 UTC) #8
Wez
nit: Can you tidy up the CL description - it's too terse, which is going ...
4 years, 5 months ago (2016-07-12 21:38:19 UTC) #9
mcasas
On 2016/07/12 21:38:19, Wez wrote: > nit: Can you tidy up the CL description - ...
4 years, 5 months ago (2016-07-12 21:44:51 UTC) #12
Wez
https://codereview.chromium.org/2129313002/diff/40001/content/browser/geolocation/location_arbitrator_impl.cc File content/browser/geolocation/location_arbitrator_impl.cc (right): https://codereview.chromium.org/2129313002/diff/40001/content/browser/geolocation/location_arbitrator_impl.cc#newcode151 content/browser/geolocation/location_arbitrator_impl.cc:151: return access_token_store_.get(); Update this to if (!access_token_store_) ... https://codereview.chromium.org/2129313002/diff/40001/content/browser/geolocation/location_arbitrator_impl.h ...
4 years, 5 months ago (2016-07-12 21:55:47 UTC) #13
Wez
CL description text looks good, but has weird line-wrap!
4 years, 5 months ago (2016-07-12 21:56:16 UTC) #14
Michael van Ouwerkerk
drive-by! https://codereview.chromium.org/2129313002/diff/40001/content/browser/geolocation/location_arbitrator_impl.h File content/browser/geolocation/location_arbitrator_impl.h (right): https://codereview.chromium.org/2129313002/diff/40001/content/browser/geolocation/location_arbitrator_impl.h#newcode123 content/browser/geolocation/location_arbitrator_impl.h:123: LocationProvider* NewSystemLocationProvider(); On 2016/07/12 21:55:47, Wez wrote: > ...
4 years, 5 months ago (2016-07-13 10:56:34 UTC) #16
mcasas
wez@ PTAL There was a rebase between PS1 and PS2, so I'd recommend not comparing ...
4 years, 5 months ago (2016-07-15 22:45:54 UTC) #22
Wez
https://codereview.chromium.org/2129313002/diff/140001/content/browser/geolocation/location_arbitrator_impl_unittest.cc File content/browser/geolocation/location_arbitrator_impl_unittest.cc (right): https://codereview.chromium.org/2129313002/diff/140001/content/browser/geolocation/location_arbitrator_impl_unittest.cc#newcode114 content/browser/geolocation/location_arbitrator_impl_unittest.cc:114: const scoped_refptr<AccessTokenStore>& /* access_token_store */, nit: Why make these ...
4 years, 5 months ago (2016-07-16 00:35:10 UTC) #25
mcasas
PTAL https://codereview.chromium.org/2129313002/diff/140001/content/browser/geolocation/location_arbitrator_impl_unittest.cc File content/browser/geolocation/location_arbitrator_impl_unittest.cc (right): https://codereview.chromium.org/2129313002/diff/140001/content/browser/geolocation/location_arbitrator_impl_unittest.cc#newcode114 content/browser/geolocation/location_arbitrator_impl_unittest.cc:114: const scoped_refptr<AccessTokenStore>& /* access_token_store */, On 2016/07/16 00:35:10, ...
4 years, 5 months ago (2016-07-16 01:17:46 UTC) #26
Wez
https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc File chrome/browser/geolocation/access_token_store_browsertest.cc (right): https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc#newcode48 chrome/browser/geolocation/access_token_store_browsertest.cc:48: scoped_refptr<AccessTokenStore> store, Now that this isn't a ptr or ...
4 years, 5 months ago (2016-07-18 17:50:53 UTC) #28
mcasas
wez@ PTAL https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc File chrome/browser/geolocation/access_token_store_browsertest.cc (right): https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc#newcode48 chrome/browser/geolocation/access_token_store_browsertest.cc:48: scoped_refptr<AccessTokenStore> store, On 2016/07/18 17:50:53, Wez wrote: ...
4 years, 5 months ago (2016-07-18 21:48:53 UTC) #30
Wez
https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc File chrome/browser/geolocation/access_token_store_browsertest.cc (right): https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc#newcode48 chrome/browser/geolocation/access_token_store_browsertest.cc:48: scoped_refptr<AccessTokenStore> store, On 2016/07/18 21:48:52, mcasas wrote: > On ...
4 years, 5 months ago (2016-07-18 22:49:18 UTC) #32
mcasas
https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc File chrome/browser/geolocation/access_token_store_browsertest.cc (right): https://codereview.chromium.org/2129313002/diff/170001/chrome/browser/geolocation/access_token_store_browsertest.cc#newcode48 chrome/browser/geolocation/access_token_store_browsertest.cc:48: scoped_refptr<AccessTokenStore> store, On 2016/07/18 22:49:18, Wez wrote: > On ...
4 years, 5 months ago (2016-07-19 01:18:19 UTC) #33
Wez
lgtm
4 years, 5 months ago (2016-07-19 20:24:23 UTC) #35
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/2129313002/250001
4 years, 5 months ago (2016-07-19 20:25:14 UTC) #37
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 20:25:17 UTC) #38
mcasas
jam@ Owners RS please
4 years, 5 months ago (2016-07-19 20:34:28 UTC) #40
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/220864)
4 years, 5 months ago (2016-07-19 20:35:08 UTC) #43
jam
lgtm
4 years, 5 months ago (2016-07-19 23:15:53 UTC) #44
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/2129313002/250001
4 years, 5 months ago (2016-07-19 23:17:30 UTC) #46
commit-bot: I haz the power
Your CL relies on deprecated CQ feature(s): * Specifying master names in CQ_INCLUDE_TRYBOTS part of ...
4 years, 5 months ago (2016-07-19 23:17:33 UTC) #47
commit-bot: I haz the power
Committed patchset #5 (id:250001)
4 years, 5 months ago (2016-07-19 23:24:30 UTC) #49
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-19 23:25:04 UTC) #50
commit-bot: I haz the power
4 years, 5 months ago (2016-07-19 23:26:14 UTC) #52
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/1161c5753adf296ea253d56f1617d3d926152b55
Cr-Commit-Position: refs/heads/master@{#406410}

Powered by Google App Engine
This is Rietveld 408576698