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

Issue 2823037: Add an ExtensionPrefStore, layered between the user prefs nad the managed pre... (Closed)

Created:
10 years, 5 months ago by Pam (message me for reviews)
Modified:
9 years, 5 months ago
Reviewers:
Bernhard Bauer
CC:
chromium-reviews, cbentzel+watch_chromium.org, ben+cc_chromium.org, amit, brettw-cc_chromium.org, Aaron Boodman, darin-cc_chromium.org, Paweł Hajdan Jr., pam+watch_chromium.org, Erik does not do reviews
Visibility:
Public.

Description

Add an ExtensionPrefStore, layered between the user prefs and the managed prefs, to manage preferences set by extensions. Update various callers of the PrefValueStore constructor accordingly. The initial user will be the proxy extension API. BUG=266 TEST=covered by unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=52088

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 4

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Total comments: 2

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+693 lines, -185 lines) Patch
M chrome/browser/dom_ui/new_tab_ui_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +10 lines, -14 lines 0 comments Download
M chrome/browser/dom_ui/shown_sections_handler_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -20 lines 0 comments Download
A chrome/browser/extensions/extension_pref_store.h View 3 4 5 6 7 1 chunk +87 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_pref_store.cc View 3 4 5 6 7 1 chunk +105 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_pref_store_unittest.cc View 4 5 6 7 1 chunk +279 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extensions_service_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/extensions/test_extension_prefs.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
MM chrome/browser/managed_prefs_banner_base_unittest.cc View 1 2 3 4 5 6 7 1 chunk +6 lines, -2 lines 0 comments Download
M chrome/browser/metrics/metrics_service_uitest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
M chrome/browser/net/chrome_url_request_context_unittest.cc View 1 2 3 4 5 6 7 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/pref_member_unittest.cc View 1 2 3 4 5 6 7 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/pref_service.h View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/pref_service.cc View 1 2 3 4 5 6 7 8 9 10 11 12 5 chunks +37 lines, -9 lines 0 comments Download
M chrome/browser/pref_service_unittest.cc View 1 2 3 4 5 6 7 5 chunks +8 lines, -5 lines 0 comments Download
MM chrome/browser/pref_value_store.h View 1 2 3 4 5 6 7 8 9 10 4 chunks +25 lines, -13 lines 0 comments Download
MM chrome/browser/pref_value_store.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +40 lines, -58 lines 0 comments Download
MM chrome/browser/pref_value_store_unittest.cc View 1 2 3 4 5 6 7 9 chunks +42 lines, -11 lines 0 comments Download
M chrome/browser/tab_contents/web_contents_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/test/reliability/page_load_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/test/testing_profile.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +1 line, -6 lines 0 comments Download
M chrome_frame/test/reliability/page_load_test.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
Pam (message me for reviews)
It's not as bad as it looks -- most of the changes are minor updates ...
10 years, 5 months ago (2010-06-30 14:02:01 UTC) #1
Pam (message me for reviews)
All the files should be in now. Sorry about that. - Pam
10 years, 5 months ago (2010-06-30 15:03:56 UTC) #2
Bernhard Bauer
In addition to my comments below, please fix the lint errors, and don't set svn:eol-style. ...
10 years, 5 months ago (2010-07-05 15:58:45 UTC) #3
Pam (message me for reviews)
All fixed, except the svn:eol-style. That's required (see http://dev.chromium.org/developers/coding-style#TOC-Subversion-properties and the link to http://src.chromium.org/viewvc/chrome/trunk/tools/buildbot/slave/config) and ...
10 years, 5 months ago (2010-07-12 08:35:22 UTC) #4
Bernhard Bauer
http://codereview.chromium.org/2823037/diff/101001/102013 File chrome/browser/pref_service.h (right): http://codereview.chromium.org/2823037/diff/101001/102013#newcode81 chrome/browser/pref_service.h:81: explicit PrefService(const FilePath& user_pref_file); Could you add a comment ...
10 years, 5 months ago (2010-07-12 09:05:32 UTC) #5
Bernhard Bauer
On 2010/07/12 08:35:22, Pam wrote: > All fixed, except the svn:eol-style. That's required (see > ...
10 years, 5 months ago (2010-07-12 09:06:49 UTC) #6
Pam (message me for reviews)
On 2010/07/12 09:06:49, Bernhard Bauer wrote: > On 2010/07/12 08:35:22, Pam wrote: > > All ...
10 years, 5 months ago (2010-07-12 11:55:47 UTC) #7
Pam (message me for reviews)
All fixed again. Please take another look. I don't know of any problems with overloading ...
10 years, 5 months ago (2010-07-12 13:49:38 UTC) #8
Bernhard Bauer
Small question below, and extension_pref_store* is missing newlines at end of file, otherwise LGTM. http://codereview.chromium.org/2823037/diff/66025/110018 ...
10 years, 5 months ago (2010-07-12 14:03:30 UTC) #9
Pam (message me for reviews)
I've checked several times, and those files all have ending newlines on my hard drive. ...
10 years, 5 months ago (2010-07-12 14:39:45 UTC) #10
Bernhard Bauer
On 2010/07/12 13:49:38, Pam wrote: > All fixed again. Please take another look. > > ...
10 years, 5 months ago (2010-07-12 14:44:09 UTC) #11
Bernhard Bauer
On 2010/07/12 14:39:45, Pam wrote: > I've checked several times, and those files all have ...
10 years, 5 months ago (2010-07-12 15:34:13 UTC) #12
Pam (message me for reviews)
> Well, function overloading in general is frowned upon in the style guide if the ...
10 years, 5 months ago (2010-07-12 15:44:22 UTC) #13
Bernhard Bauer
10 years, 5 months ago (2010-07-12 16:00:34 UTC) #14
On 2010/07/12 15:44:22, Pam wrote:
> > Well, function overloading in general is frowned upon in the style guide if
> the
> > respective methods do different things.
> 
> Right, then, off it goes. Another look please?
> 
> - Pam

LGTM.

Powered by Google App Engine
This is Rietveld 408576698