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

Issue 976243002: Split content settings pref related logic into a separate class (Closed)

Created:
5 years, 9 months ago by raymes
Modified:
5 years, 9 months ago
Reviewers:
msramek, markusheintz_
CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Split content settings pref related logic into a separate class This CL is a pure refactoring which paves the way to allow each content setting type to be stored in a separate pref. A ContentSettingsPref class is introduced. Currently it contains all the logic for reading/writing all content setting types into a single pref. However in a subsequent change N of these objects will be created, one for each content setting type. BUG=452388 Committed: https://crrev.com/9c7216414298601630ae779d6963d1da3ccbefc9 Cr-Commit-Position: refs/heads/master@{#321085}

Patch Set 1 #

Patch Set 2 : #

Total comments: 1

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 5

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+308 lines, -860 lines) Patch
M chrome/browser/content_settings/content_settings_pref_provider_unittest.cc View 1 2 3 4 7 8 3 chunks +4 lines, -3 lines 0 comments Download
M components/content_settings.gypi View 1 1 chunk +2 lines, -0 lines 0 comments Download
M components/content_settings/core/browser/BUILD.gn View 1 2 chunks +4 lines, -2 lines 0 comments Download
A + components/content_settings/core/browser/content_settings_pref.h View 1 2 3 4 5 7 8 6 chunks +46 lines, -35 lines 0 comments Download
A + components/content_settings/core/browser/content_settings_pref.cc View 1 4 5 7 chunks +183 lines, -281 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.h View 1 2 3 4 7 8 4 chunks +12 lines, -39 lines 0 comments Download
M components/content_settings/core/browser/content_settings_pref_provider.cc View 1 2 3 4 5 7 chunks +57 lines, -500 lines 0 comments Download

Messages

Total messages: 31 (10 generated)
raymes
5 years, 9 months ago (2015-03-09 01:51:31 UTC) #2
msramek
+Markus, who is an owner.
5 years, 9 months ago (2015-03-09 10:00:26 UTC) #4
msramek
Hi Raymes, overall it LGTM (not that it means much for you now, since I'm ...
5 years, 9 months ago (2015-03-09 19:02:29 UTC) #5
raymes
Thanks!! https://codereview.chromium.org/976243002/diff/80001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/976243002/diff/80001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode67 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:67: prefs::kContentSettingsPatternPairs, Hmm I'm not exactly sure what you ...
5 years, 9 months ago (2015-03-09 22:13:52 UTC) #6
msramek
https://codereview.chromium.org/976243002/diff/80001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc File chrome/browser/content_settings/content_settings_pref_provider_unittest.cc (right): https://codereview.chromium.org/976243002/diff/80001/chrome/browser/content_settings/content_settings_pref_provider_unittest.cc#newcode67 chrome/browser/content_settings/content_settings_pref_provider_unittest.cc:67: prefs::kContentSettingsPatternPairs, On 2015/03/09 22:13:52, raymes wrote: > Hmm I'm ...
5 years, 9 months ago (2015-03-10 19:40:37 UTC) #7
raymes
Done. I went the SetWebsiteSetting route since it used only the public interface. Markus - ...
5 years, 9 months ago (2015-03-11 01:03:24 UTC) #8
markusheintz_
On 2015/03/11 01:03:24, raymes wrote: > Done. I went the SetWebsiteSetting route since it used ...
5 years, 9 months ago (2015-03-11 10:50:35 UTC) #9
raymes
Right now there is one instance of the ContentSettingsPref class which writes all content settings ...
5 years, 9 months ago (2015-03-12 01:56:52 UTC) #10
markusheintz_
LGTM It is necessary to think about a migration path too. This migration path has ...
5 years, 9 months ago (2015-03-12 23:12:55 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976243002/120001
5 years, 9 months ago (2015-03-12 23:19:09 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/35629)
5 years, 9 months ago (2015-03-13 03:06:40 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976243002/140001
5 years, 9 months ago (2015-03-13 04:50:16 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/35763)
5 years, 9 months ago (2015-03-13 08:37:13 UTC) #21
markusheintz_
LGTM
5 years, 9 months ago (2015-03-17 09:38:31 UTC) #22
msramek
If the tests fail only because of replacing the explicit locking with SetWebsiteSetting(), then I'm ...
5 years, 9 months ago (2015-03-17 14:04:13 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/976243002/160001
5 years, 9 months ago (2015-03-18 02:27:39 UTC) #26
raymes
I'm so sorry I thought this landed and never realize it didn't. I reverted to ...
5 years, 9 months ago (2015-03-18 02:27:58 UTC) #27
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 9 months ago (2015-03-18 06:34:09 UTC) #28
commit-bot: I haz the power
Patchset 9 (id:??) landed as https://crrev.com/9c7216414298601630ae779d6963d1da3ccbefc9 Cr-Commit-Position: refs/heads/master@{#321085}
5 years, 9 months ago (2015-03-18 06:34:58 UTC) #29
msramek
Thanks! And no worries :) I was working on the DefaultProvider in the meantime, so ...
5 years, 9 months ago (2015-03-18 20:21:42 UTC) #30
raymes
5 years, 9 months ago (2015-03-18 22:52:56 UTC) #31
Message was sent while issue was closed.
Cool, glad to hear :) Please loop me in on any reviews to help me learn the
code! Thanks!

On Thu, 19 Mar 2015 at 07:21 <msramek@chromium.org> wrote:

> Thanks! And no worries :) I was working on the DefaultProvider in the
> meantime,
> so we didn't lose any time.
>
> https://codereview.chromium.org/976243002/
>

To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698