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

Issue 3032058: Move creation of the PrefStores into the PrefValueStore, to reduce the knowle... (Closed)

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

Description

Move creation of the PrefStores into the PrefValueStore, to reduce the knowledge the PrefService has of its two-levels-deep implementation. Create a TestingPrefService::TestingPrefValueStore to allow tests to set the PrefStores directly, as they used to be able to do. BUG=50722 TEST=covered by unit tests Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=55202

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : Synced tree & fixed conflicts #

Patch Set 4 : Fixed bad include ordering from merge #

Patch Set 5 : More merge fix #

Total comments: 4

Patch Set 6 : Addressed Mattias's comments #

Patch Set 7 : Comment-only changes #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -67 lines) Patch
M chrome/browser/extensions/extension_pref_store_unittest.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/net/chrome_url_request_context_unittest.cc View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/pref_service.h View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/pref_service.cc View 1 2 3 4 5 2 chunks +6 lines, -32 lines 0 comments Download
M chrome/browser/pref_value_store.h View 1 2 3 4 5 6 3 chunks +30 lines, -13 lines 1 comment Download
M chrome/browser/pref_value_store.cc View 1 2 3 4 5 6 2 chunks +45 lines, -11 lines 1 comment Download
M chrome/browser/pref_value_store_unittest.cc View 1 2 3 chunks +9 lines, -6 lines 0 comments Download
MM chrome/test/testing_pref_service.h View 1 2 1 chunk +12 lines, -0 lines 0 comments Download
MM chrome/test/testing_pref_service.cc View 1 2 3 4 5 1 chunk +13 lines, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
Pam (message me for reviews)
10 years, 4 months ago (2010-08-05 14:09:29 UTC) #1
Mattias Nissler (ping if slow)
Overall, this LGTM. I've put a comment concerning the PrefValueStore constructor, but I don't feel ...
10 years, 4 months ago (2010-08-05 15:07:25 UTC) #2
Pam (message me for reviews)
http://codereview.chromium.org/3032058/diff/26003/31007 File chrome/browser/pref_value_store.h (right): http://codereview.chromium.org/3032058/diff/26003/31007#newcode52 chrome/browser/pref_value_store.h:52: bool user_only); On 2010/08/05 15:07:26, mnissler wrote: > Hm, ...
10 years, 4 months ago (2010-08-05 20:18:08 UTC) #3
Mattias Nissler (ping if slow)
10 years, 4 months ago (2010-08-06 07:29:41 UTC) #4
LGTM with two little nits.

http://codereview.chromium.org/3032058/diff/14002/21006
File chrome/browser/pref_value_store.cc (right):

http://codereview.chromium.org/3032058/diff/14002/21006#newcode247
chrome/browser/pref_value_store.cc:247: }
nit: Order of definitions doesn't correspond to order of declarations in the
header.

http://codereview.chromium.org/3032058/diff/14002/21007
File chrome/browser/pref_value_store.h (right):

http://codereview.chromium.org/3032058/diff/14002/21007#newcode139
chrome/browser/pref_value_store.h:139: // This constructor should only be used
by subclasses in testing. The usual
nit: It's also used for creating the actual PrefValueStore.

Powered by Google App Engine
This is Rietveld 408576698