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

Issue 1033004: Adds GeolocationContentSettingsMap. (Closed)

Created:
10 years, 9 months ago by bulach
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., ben+cc_chromium.org
Visibility:
Public.

Description

Adds GeolocationContentSettingsMap. This class manages the geolocation permission persistence. It's based on HostContentSettingsMap but it manages only Geolocation, and instead of mapping host => permission, it maps [top level, frame] => permission. A follow up will wire up with GeolocationPermissionContext. TEST=geolocation_content_settings_map_unittest.cc

Patch Set 1 : Adds GeolocationContentSettingsMap and tests. #

Total comments: 3

Patch Set 2 : Adds missing unittest. #

Total comments: 45

Patch Set 3 : Addresses comments. #

Total comments: 24

Patch Set 4 : Uses "RequestingOriginSettings" and allows empty embedder as a wildcard. #

Total comments: 17
Unified diffs Side-by-side diffs Delta from patch set Stats (+611 lines, -0 lines) Patch
M chrome/browser/browser_prefs.cc View 2 chunks +2 lines, -0 lines 0 comments Download
A chrome/browser/geolocation/geolocation_content_settings_map.h View 1 2 3 1 chunk +116 lines, -0 lines 9 comments Download
A chrome/browser/geolocation/geolocation_content_settings_map.cc View 1 2 3 1 chunk +184 lines, -0 lines 7 comments Download
A chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc View 2 3 1 chunk +269 lines, -0 lines 1 comment Download
M chrome/browser/profile.h View 4 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/profile.cc View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
bulach
Hi Peter, As we briefly chatted yesterday, this change adds a separate GeolocationContentSettingsMap (based on ...
10 years, 9 months ago (2010-03-17 17:44:31 UTC) #1
Peter Kasting
There are a large number of comments below, but for the most part, they are ...
10 years, 9 months ago (2010-03-17 22:26:01 UTC) #2
bulach
thanks Peter! all comments addressed (except two where you mentioned not having a strong opinion). ...
10 years, 9 months ago (2010-03-18 13:50:59 UTC) #3
joth
Thanks for implementing this. A few comments, but almost all minor. http://codereview.chromium.org/1033004/diff/2001/3003 File chrome/browser/geolocation/geolocation_content_settings_map.h (right): ...
10 years, 9 months ago (2010-03-18 14:34:15 UTC) #4
Peter Kasting
I dashed off some notes to bulach via IM this morning that I'll copy in ...
10 years, 9 months ago (2010-03-18 17:01:42 UTC) #5
Peter Kasting
Oh yeah one more. I agree with joth about acquiring the lock around returning the ...
10 years, 9 months ago (2010-03-18 17:02:55 UTC) #6
bulach
Hi Peter, Joth, Thanks again for the comments! I changed it slightly and added the ...
10 years, 9 months ago (2010-03-18 17:13:35 UTC) #7
joth
On 2010/03/18 17:01:42, Peter Kasting wrote: > I dashed off some notes to bulach via ...
10 years, 9 months ago (2010-03-18 18:24:01 UTC) #8
Peter Kasting
As I mentioned to bulach on IM, I'm going to try to patch this in ...
10 years, 9 months ago (2010-03-18 20:59:20 UTC) #9
Peter Kasting
http://codereview.chromium.org/1033004/diff/26001/27003 File chrome/browser/geolocation/geolocation_content_settings_map.h (right): http://codereview.chromium.org/1033004/diff/26001/27003#newcode59 chrome/browser/geolocation/geolocation_content_settings_map.h:59: const RequestingOriginSettings& requesting_origin_settings() const; On 2010/03/18 20:59:20, Peter Kasting ...
10 years, 9 months ago (2010-03-18 21:53:29 UTC) #10
Peter Kasting
Sigh. I wrote a huge comment here and Rietveld ate it. I don't have the ...
10 years, 9 months ago (2010-03-19 00:13:47 UTC) #11
Peter Kasting
10 years, 9 months ago (2010-03-19 00:50:31 UTC) #12
Posted at http://codereview.chromium.org/1084005 .  Closing this.

Powered by Google App Engine
This is Rietveld 408576698