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

Issue 7484072: Migrate geolocation settings to host content settings map. (Closed)

Created:
9 years, 5 months ago by markusheintz_
Modified:
9 years, 4 months ago
CC:
chromium-reviews, Paweł Hajdan Jr., jochen (gone - plz use gerrit), Leandro Graciá Gil
Visibility:
Public.

Description

Migrate geolocation settings to host content settings map and remove the geolocation settings map. BUG=63656 TEST=host_content_settings_map_unittest.cc, content_settings_pref_provider_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=96808

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Patch Set 4 : " #

Patch Set 5 : " #

Patch Set 6 : " #

Patch Set 7 : " #

Patch Set 8 : " #

Total comments: 27

Patch Set 9 : " #

Patch Set 10 : rename variables #

Total comments: 4

Patch Set 11 : " #

Total comments: 9

Patch Set 12 : " #

Patch Set 13 : " #

Patch Set 14 : " #

Total comments: 6

Patch Set 15 : " #

Total comments: 2

Patch Set 16 : " #

Total comments: 1

Patch Set 17 : " #

Patch Set 18 : " #

Total comments: 4

Patch Set 19 : " #

Patch Set 20 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+578 lines, -553 lines) Patch
M chrome/browser/content_settings/content_settings_pref_provider.h View 1 2 3 4 5 6 7 8 9 10 3 chunks +21 lines, -7 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 13 chunks +174 lines, -25 lines 0 comments Download
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +152 lines, -19 lines 0 comments Download
M chrome/browser/content_settings/host_content_settings_map.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 3 chunks +8 lines, -6 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context.cc View 1 2 3 4 3 chunks +12 lines, -5 lines 0 comments Download
M chrome/browser/geolocation/chrome_geolocation_permission_context_unittest.cc View 1 2 3 4 5 chunks +58 lines, -21 lines 0 comments Download
M chrome/browser/geolocation/geolocation_browsertest.cc View 1 2 3 4 3 chunks +16 lines, -5 lines 0 comments Download
D chrome/browser/geolocation/geolocation_content_settings_map.h View 1 chunk +0 lines, -112 lines 0 comments Download
D chrome/browser/geolocation/geolocation_content_settings_map.cc View 1 chunk +0 lines, -228 lines 0 comments Download
M chrome/browser/geolocation/geolocation_settings_state.cc View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/geolocation/geolocation_settings_state_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +35 lines, -13 lines 0 comments Download
M chrome/browser/prefs/browser_prefs.cc View 1 2 3 4 5 6 7 8 9 10 3 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/profiles/profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/profiles/profile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/browser/profiles/profile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +0 lines, -7 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model.cc View 1 2 3 chunks +10 lines, -6 lines 0 comments Download
M chrome/browser/ui/content_settings/content_setting_bubble_model_unittest.cc View 1 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 10 chunks +77 lines, -60 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M chrome/test/base/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/test/base/testing_profile.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +0 lines, -10 lines 0 comments Download
M content/browser/browser_context.h View 1 2 3 4 2 chunks +0 lines, -4 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
markusheintz_
Please review my CL. Thanks!
9 years, 4 months ago (2011-08-02 16:22:55 UTC) #1
Bernhard Bauer
http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode86 chrome/browser/content_settings/content_settings_pref_provider.cc:86: void CopyKeys(DictionaryValue* source, Not used? http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode1077 chrome/browser/content_settings/content_settings_pref_provider.cc:1077: for (size_t ...
9 years, 4 months ago (2011-08-03 15:22:50 UTC) #2
markusheintz_
http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode86 chrome/browser/content_settings/content_settings_pref_provider.cc:86: void CopyKeys(DictionaryValue* source, On 2011/08/03 15:22:50, Bernhard Bauer wrote: ...
9 years, 4 months ago (2011-08-04 12:45:56 UTC) #3
Bernhard Bauer
http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/9020/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode1198 chrome/browser/content_settings/content_settings_pref_provider.cc:1198: prefs_->Set(prefs::kGeolocationContentSettings, On 2011/08/04 12:45:56, markusheintz_ wrote: > On 2011/08/03 ...
9 years, 4 months ago (2011-08-05 10:08:45 UTC) #4
markusheintz_
I fixed all comments but re-added a method to update the obsolete geolocation preference. Since ...
9 years, 4 months ago (2011-08-09 13:45:47 UTC) #5
Bernhard Bauer
On 2011/08/09 13:45:47, markusheintz_ wrote: > I fixed all comments but re-added a method to ...
9 years, 4 months ago (2011-08-09 14:09:45 UTC) #6
markusheintz_
The "MigrateObsoleteGeolocationPref" method uses the "SetContentSetting" method while iterating over the obsolete prefs dictionary. The ...
9 years, 4 months ago (2011-08-09 14:40:49 UTC) #7
Bernhard Bauer
On 2011/08/09 14:40:49, markusheintz_ wrote: > The "MigrateObsoleteGeolocationPref" method uses the "SetContentSetting" method > while ...
9 years, 4 months ago (2011-08-09 14:57:33 UTC) #8
markusheintz_
http://codereview.chromium.org/7484072/diff/30001/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/30001/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode1184 chrome/browser/content_settings/content_settings_pref_provider.cc:1184: { On 2011/08/09 14:57:33, Bernhard Bauer wrote: > On ...
9 years, 4 months ago (2011-08-10 09:33:05 UTC) #9
Bernhard Bauer
http://codereview.chromium.org/7484072/diff/30001/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/30001/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode1184 chrome/browser/content_settings/content_settings_pref_provider.cc:1184: { On 2011/08/10 09:33:05, markusheintz_ wrote: > On 2011/08/09 ...
9 years, 4 months ago (2011-08-10 10:40:03 UTC) #10
markusheintz_
http://codereview.chromium.org/7484072/diff/38001/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/38001/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode1211 chrome/browser/content_settings/content_settings_pref_provider.cc:1211: obsolete_geolocation_settings->Clear(); On 2011/08/10 10:40:03, Bernhard Bauer wrote: > Oh, ...
9 years, 4 months ago (2011-08-10 11:21:42 UTC) #11
Bernhard Bauer
http://codereview.chromium.org/7484072/diff/4006/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/4006/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode562 chrome/browser/content_settings/content_settings_pref_provider.cc:562: AutoReset<bool> auto_reset(&updating_preferences_, true); Nit: Move this (and the ones ...
9 years, 4 months ago (2011-08-10 11:55:28 UTC) #12
markusheintz_
http://codereview.chromium.org/7484072/diff/4006/chrome/browser/content_settings/content_settings_pref_provider.cc File chrome/browser/content_settings/content_settings_pref_provider.cc (right): http://codereview.chromium.org/7484072/diff/4006/chrome/browser/content_settings/content_settings_pref_provider.cc#newcode562 chrome/browser/content_settings/content_settings_pref_provider.cc:562: AutoReset<bool> auto_reset(&updating_preferences_, true); On 2011/08/10 11:55:29, Bernhard Bauer wrote: ...
9 years, 4 months ago (2011-08-10 12:47:53 UTC) #13
Bernhard Bauer
http://codereview.chromium.org/7484072/diff/38030/chrome/browser/content_settings/host_content_settings_map.cc File chrome/browser/content_settings/host_content_settings_map.cc (right): http://codereview.chromium.org/7484072/diff/38030/chrome/browser/content_settings/host_content_settings_map.cc#newcode314 chrome/browser/content_settings/host_content_settings_map.cc:314: // Sort rules according to their primary pattern string ...
9 years, 4 months ago (2011-08-10 13:04:03 UTC) #14
markusheintz_
@sail: Could you review the profile related changes of the CL? Thanks a lot.
9 years, 4 months ago (2011-08-10 14:08:15 UTC) #15
sail
LGTM http://codereview.chromium.org/7484072/diff/12004/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/7484072/diff/12004/chrome/browser/profiles/profile_impl.cc#newcode9 chrome/browser/profiles/profile_impl.cc:9: #include <vector> Same here, not sure why this ...
9 years, 4 months ago (2011-08-10 16:06:51 UTC) #16
markusheintz_
@Bernhard: I worked on the changes we discussed offline. http://codereview.chromium.org/7484072/diff/12004/chrome/browser/profiles/profile_impl.cc File chrome/browser/profiles/profile_impl.cc (right): http://codereview.chromium.org/7484072/diff/12004/chrome/browser/profiles/profile_impl.cc#newcode9 chrome/browser/profiles/profile_impl.cc:9: ...
9 years, 4 months ago (2011-08-11 12:30:38 UTC) #17
Bernhard Bauer
LGTM, thanks!
9 years, 4 months ago (2011-08-11 12:35:33 UTC) #18
markusheintz_
Thanks all for the review!
9 years, 4 months ago (2011-08-11 12:44:54 UTC) #19
commit-bot: I haz the power
Presubmit check for 7484072-50001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-08-12 12:09:58 UTC) #20
markusheintz_
@Avi: Could you please review the content/browser/browser_context.h related changes? Thanks a lot
9 years, 4 months ago (2011-08-12 12:15:18 UTC) #21
Avi (use Gerrit)
On 2011/08/12 12:15:18, markusheintz_ wrote: > @Avi: Could you please review the content/browser/browser_context.h related > ...
9 years, 4 months ago (2011-08-15 17:35:20 UTC) #22
commit-bot: I haz the power
Presubmit check for 7484072-50001 failed and returned exit status 1. Running presubmit commit checks ...
9 years, 4 months ago (2011-08-15 17:42:20 UTC) #23
Avi (use Gerrit)
Rubberstamp LGTM
9 years, 4 months ago (2011-08-15 17:44:29 UTC) #24
commit-bot: I haz the power
9 years, 4 months ago (2011-08-15 19:27:32 UTC) #25
Change committed as 96808

Powered by Google App Engine
This is Rietveld 408576698