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

Issue 6484035: Add a content_settings::BaseProvider for code that is shared by all content settings providers. (Closed)

Created:
9 years, 10 months ago by markusheintz_
Modified:
9 years, 6 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Add a content_settings::BaseProvider for code that is shared by all content settings providers. BUG=63656 TEST=host_content_settings_map_unittest.cc Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=74944

Patch Set 1 #

Patch Set 2 : " #

Patch Set 3 : " #

Total comments: 14

Patch Set 4 : " #

Patch Set 5 : only fixed one nit #

Total comments: 2

Patch Set 6 : " #

Patch Set 7 : missing files #

Patch Set 8 : nits #

Total comments: 1

Patch Set 9 : " #

Unified diffs Side-by-side diffs Delta from patch set Stats (+411 lines, -293 lines) Patch
A chrome/browser/content_settings/content_settings_base_provider.h View 1 2 3 4 5 6 1 chunk +124 lines, -0 lines 0 comments Download
A chrome/browser/content_settings/content_settings_base_provider.cc View 1 2 3 4 5 6 1 chunk +236 lines, -0 lines 0 comments Download
M chrome/browser/content_settings/pref_content_settings_provider.h View 1 2 3 4 5 6 7 8 6 chunks +8 lines, -45 lines 0 comments Download
M chrome/browser/content_settings/pref_content_settings_provider.cc View 1 2 3 4 5 6 7 8 14 chunks +41 lines, -248 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
markusheintz_
Please review my CL Thanks.
9 years, 10 months ago (2011-02-14 15:45:24 UTC) #1
Bernhard Bauer
Nice, I like the separation of the content settings lookup logic and the mapping to ...
9 years, 10 months ago (2011-02-14 16:58:36 UTC) #2
markusheintz_
http://codereview.chromium.org/6484035/diff/1006/chrome/browser/content_settings/content_settings_provider.cc File chrome/browser/content_settings/content_settings_provider.cc (right): http://codereview.chromium.org/6484035/diff/1006/chrome/browser/content_settings/content_settings_provider.cc#newcode67 chrome/browser/content_settings/content_settings_provider.cc:67: // TODO(markuseheintz) Remove this DCHECK. On 2011/02/14 16:58:36, Bernhard ...
9 years, 10 months ago (2011-02-14 18:25:28 UTC) #3
Bernhard Bauer
On 2011/02/14 18:25:28, markusheintz_ wrote: > http://codereview.chromium.org/6484035/diff/1006/chrome/browser/content_settings/content_settings_provider.cc > File chrome/browser/content_settings/content_settings_provider.cc (right): > > http://codereview.chromium.org/6484035/diff/1006/chrome/browser/content_settings/content_settings_provider.cc#newcode67 > ...
9 years, 10 months ago (2011-02-15 09:54:21 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/6484035/diff/3007/chrome/browser/content_settings/pref_content_settings_provider.h File chrome/browser/content_settings/pref_content_settings_provider.h (right): http://codereview.chromium.org/6484035/diff/3007/chrome/browser/content_settings/pref_content_settings_provider.h#newcode93 chrome/browser/content_settings/pref_content_settings_provider.h:93: // Content-settings-provider that provides content-settings from the user Nit: ...
9 years, 10 months ago (2011-02-15 09:55:25 UTC) #5
markusheintz_
I'd like to rename the file pref_content_settings_provider.* in a separate CL. http://codereview.chromium.org/6484035/diff/3007/chrome/browser/content_settings/pref_content_settings_provider.h File chrome/browser/content_settings/pref_content_settings_provider.h (right): ...
9 years, 10 months ago (2011-02-15 11:00:16 UTC) #6
Bernhard Bauer
On Tue, Feb 15, 2011 at 12:00, <markusheintz@chromium.org> wrote: > I'd like to rename the ...
9 years, 10 months ago (2011-02-15 11:59:40 UTC) #7
markusheintz_
On 2011/02/15 11:59:40, Bernhard Bauer wrote: > On Tue, Feb 15, 2011 at 12:00, <mailto:markusheintz@chromium.org> ...
9 years, 10 months ago (2011-02-15 12:06:22 UTC) #8
Bernhard Bauer
LGTM. http://codereview.chromium.org/6484035/diff/14004/chrome/browser/content_settings/pref_content_settings_provider.cc File chrome/browser/content_settings/pref_content_settings_provider.cc (right): http://codereview.chromium.org/6484035/diff/14004/chrome/browser/content_settings/pref_content_settings_provider.cc#newcode656 chrome/browser/content_settings/pref_content_settings_provider.cc:656: BaseProvider::ClickToPlayFixup( Is that even necessary if we're inheriting ...
9 years, 10 months ago (2011-02-15 12:28:05 UTC) #9
markusheintz_
On 2011/02/15 12:28:05, Bernhard Bauer wrote: > LGTM. > > http://codereview.chromium.org/6484035/diff/14004/chrome/browser/content_settings/pref_content_settings_provider.cc > File chrome/browser/content_settings/pref_content_settings_provider.cc (right): ...
9 years, 10 months ago (2011-02-15 12:29:53 UTC) #10
Bernhard Bauer
On Tue, Feb 15, 2011 at 13:29, <markusheintz@chromium.org> wrote: > On 2011/02/15 12:28:05, Bernhard Bauer ...
9 years, 10 months ago (2011-02-15 12:45:34 UTC) #11
markusheintz
9 years, 10 months ago (2011-02-15 13:25:44 UTC) #12
No. If it is fine to omit the prefix. Fine with me. Two places less to
touch.

Removed the BaseProvider: prefix in the PrefProvider class.

On Tue, Feb 15, 2011 at 1:32 PM, Bernhard Bauer <bauerb@chromium.org> wrote:

> On Tue, Feb 15, 2011 at 13:29,  <markusheintz@chromium.org> wrote:
> > On 2011/02/15 12:28:05, Bernhard Bauer wrote:
> >>
> >> LGTM.
> >
> >
> >
>
http://codereview.chromium.org/6484035/diff/14004/chrome/browser/content_sett...
> >>
> >> File chrome/browser/content_settings/pref_content_settings_provider.cc
> >
> > (right):
> >
> >
> >
>
http://codereview.chromium.org/6484035/diff/14004/chrome/browser/content_sett...
> >>
> >> chrome/browser/content_settings/pref_content_settings_provider.cc:656:
> >> BaseProvider::ClickToPlayFixup(
> >> Is that even necessary if we're inheriting from BaseProvider?
> >
> > Sadly yes. the PrefDefaultProvider also uses this method. But this will
> be
> > fix
> > during the re-factoring.
>
> What I meant was, do you explicitly need to call the method with the
> BaseProvider:: prefix?
>
> > http://codereview.chromium.org/6484035/
> >
>



-- 
Markus

Powered by Google App Engine
This is Rietveld 408576698