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

Issue 11587003: Make ChromeGeolocationPermissionContextFactory a ProfileKeyedServiceFactory (Closed)

Created:
8 years ago by John Knottenbelt
Modified:
7 years, 11 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Make ChromeGeolocationPermissionContextFactory a ProfileKeyedServiceFactory content::GeolocationPermissionContext derives RefCountedThreadSafe, so we can't mix a RefcountedProfileKeyedService into ChromeGeolocationPermissionContextFactory. Instead, create a separate ProfileKeyedService to hold the scoped_refptr<GeolocationPermissionContext>. Ground work for https://codereview.chromium.org/11590002/ TEST=Existing BUG=155029 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=175521

Patch Set 1 #

Patch Set 2 : Fix Android compile error. Add GetInstance() call to ProfileDependencyManager. #

Total comments: 6

Patch Set 3 : Add ServiceRedirectedInIncognito override. #

Patch Set 4 : Rebase. #

Total comments: 8

Patch Set 5 : Fix nits #

Patch Set 6 : Rebase. #

Total comments: 5

Patch Set 7 : Address sky's comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -30 lines) Patch
M chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h View 1 2 3 4 5 6 1 chunk +18 lines, -5 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc View 1 2 3 4 5 6 3 chunks +55 lines, -4 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_prefs.h View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/geolocation/geolocation_prefs.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile_dependency_manager.cc View 1 2 3 4 5 6 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 1 chunk +1 line, -5 lines 0 comments Download

Messages

Total messages: 21 (0 generated)
John Knottenbelt
8 years ago (2012-12-15 09:36:01 UTC) #1
John Knottenbelt
8 years ago (2012-12-18 11:02:26 UTC) #2
rpetterson
https://codereview.chromium.org/11587003/diff/10001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/11587003/diff/10001/chrome/browser/profiles/profile_impl.cc#newcode859 chrome/browser/profiles/profile_impl.cc:859: ProfileImpl::GetGeolocationPermissionContext() { Do you have any plans to eventually ...
8 years ago (2012-12-18 21:22:17 UTC) #3
John Knottenbelt
Thanks a lot for your help, please see my comments inline. https://codereview.chromium.org/11587003/diff/10001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): ...
8 years ago (2012-12-19 16:01:09 UTC) #4
rpetterson
https://codereview.chromium.org/11587003/diff/10001/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): https://codereview.chromium.org/11587003/diff/10001/chrome/browser/profiles/profile_impl.cc#newcode859 chrome/browser/profiles/profile_impl.cc:859: ProfileImpl::GetGeolocationPermissionContext() { On 2012/12/19 16:01:09, John Knottenbelt wrote: > ...
8 years ago (2012-12-19 22:22:44 UTC) #5
John Knottenbelt
Hi Joth, Marcus is on holiday until the New Year. If you have a moment, ...
8 years ago (2012-12-20 13:28:00 UTC) #6
rpetterson
LGTM From a profile standpoint it's fine right now given that you need to implement ...
8 years ago (2012-12-20 19:06:55 UTC) #7
joth
Hi John Will try but not sure I'll get chance... but note that as you're ...
8 years ago (2012-12-20 19:17:11 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11587003/25001
7 years, 11 months ago (2013-01-02 11:43:25 UTC) #9
commit-bot: I haz the power
Failed to apply patch for chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-02 11:43:31 UTC) #10
John Knottenbelt
Please could you do an owners review: sky: chrome/test/ bauerb: chrome/browser/prefs/ Thanks!
7 years, 11 months ago (2013-01-02 14:32:51 UTC) #11
Bernhard Bauer
chrome/browser/prefs LGTM, but I found some nits elsewhere: https://codereview.chromium.org/11587003/diff/36002/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc File chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc (right): https://codereview.chromium.org/11587003/diff/36002/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc#newcode23 chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc:23: context_ ...
7 years, 11 months ago (2013-01-02 14:59:53 UTC) #12
John Knottenbelt
Thanks, Bernhard. Nit's addressed. https://codereview.chromium.org/11587003/diff/36002/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc File chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc (right): https://codereview.chromium.org/11587003/diff/36002/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc#newcode23 chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc:23: context_ = new ChromeGeolocationPermissionContext(profile); On ...
7 years, 11 months ago (2013-01-02 15:49:02 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11587003/42001
7 years, 11 months ago (2013-01-04 15:23:42 UTC) #14
commit-bot: I haz the power
Failed to apply patch for chrome/browser/profiles/profile_impl.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 11 months ago (2013-01-04 15:23:49 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11587003/47001
7 years, 11 months ago (2013-01-04 15:48:52 UTC) #16
commit-bot: I haz the power
Presubmit check for 11587003-47001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 11 months ago (2013-01-04 15:48:59 UTC) #17
sky
LGTM https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc File chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc (right): https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc#newcode33 chrome/browser/geolocation/chrome_geolocation_permission_context_factory.cc:33: }; DISALLOW_... https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h File chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h (right): https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h#newcode25 chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h:25: ...
7 years, 11 months ago (2013-01-07 14:51:44 UTC) #18
John Knottenbelt
https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h File chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h (right): https://codereview.chromium.org/11587003/diff/47001/chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h#newcode25 chrome/browser/geolocation/chrome_geolocation_permission_context_factory.h:25: DefaultSingletonTraits<ChromeGeolocationPermissionContextFactory>; On 2013/01/07 14:51:44, sky wrote: > indent 4 ...
7 years, 11 months ago (2013-01-08 10:24:27 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jknotten@chromium.org/11587003/56001
7 years, 11 months ago (2013-01-08 10:24:29 UTC) #20
commit-bot: I haz the power
7 years, 11 months ago (2013-01-08 13:41:01 UTC) #21
Message was sent while issue was closed.
Change committed as 175521

Powered by Google App Engine
This is Rietveld 408576698