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

Issue 1525018: Simplify the geolocation content settings map: it's only ever used from the U... (Closed)

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

Description

Simplify the geolocation content settings map: it's only ever used from the UI thread, so no need for it to cache a copy of the prefs values BUG=none TEST=GeolocationContentSettingsMapTests.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44073

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 4

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -217 lines) Patch
M chrome/browser/geolocation/geolocation_content_settings_map.h View 1 2 7 chunks +5 lines, -37 lines 0 comments Download
M chrome/browser/geolocation/geolocation_content_settings_map.cc View 1 2 3 4 5 3 chunks +81 lines, -156 lines 0 comments Download
M chrome/browser/geolocation/geolocation_content_settings_map_unittest.cc View 1 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
bulach
LGTM, nice simplification, thanks! couple of nits: http://codereview.chromium.org/1525018/diff/5001/6002 File chrome/browser/geolocation/geolocation_content_settings_map.cc (right): http://codereview.chromium.org/1525018/diff/5001/6002#newcode88 chrome/browser/geolocation/geolocation_content_settings_map.cc:88: ReadExceptions(&content_settings); roll ...
10 years, 8 months ago (2010-04-08 15:45:15 UTC) #1
joth
Thanks! It was a useful experiment. http://codereview.chromium.org/1525018/diff/5001/6002 File chrome/browser/geolocation/geolocation_content_settings_map.cc (right): http://codereview.chromium.org/1525018/diff/5001/6002#newcode88 chrome/browser/geolocation/geolocation_content_settings_map.cc:88: ReadExceptions(&content_settings); On 2010/04/08 ...
10 years, 8 months ago (2010-04-08 15:49:09 UTC) #2
albertb
http://codereview.chromium.org/1525018/diff/13001/1005 File chrome/browser/geolocation/geolocation_content_settings_map.cc (right): http://codereview.chromium.org/1525018/diff/13001/1005#newcode116 chrome/browser/geolocation/geolocation_content_settings_map.cc:116: ScopedPrefUpdate update(prefs, prefs::kGeolocationDefaultContentSetting); You only need ScopedPrefUpdate when updating ...
10 years, 8 months ago (2010-04-08 16:48:23 UTC) #3
joth
Thanks for clarifying that, all fixed. On 2010/04/08 16:48:23, albertb wrote: > http://codereview.chromium.org/1525018/diff/13001/1005 > File ...
10 years, 8 months ago (2010-04-08 16:52:27 UTC) #4
albertb
10 years, 8 months ago (2010-04-08 17:08:34 UTC) #5
LGTM

http://codereview.chromium.org/1525018/diff/17001/10003
File chrome/browser/geolocation/geolocation_content_settings_map.cc (right):

http://codereview.chromium.org/1525018/diff/17001/10003#newcode135
chrome/browser/geolocation/geolocation_content_settings_map.cc:135:
prefs::kGeolocationContentSettings);
This is indented too far.

Powered by Google App Engine
This is Rietveld 408576698