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

Issue 10821047: Provide access to recommended pref values (Closed)

Created:
8 years, 5 months ago by bartfab (slow)
Modified:
8 years, 4 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

PrefValueStore and PrefService expose the value of a pref returned by the highest-priority PrefStore only. Recommended values are interesting even if they are currently being overridden by a higher-priority source. This CL adds a getter for the recommended value and makes pref change notifications be sent on all value changes, even if the change occurs in a PrefStore that is currently overridden. This will allow the settings UI to adapt when recommended values change. BUG=104955 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=148939

Patch Set 1 #

Total comments: 6

Patch Set 2 : Comments addressed. #

Total comments: 4

Patch Set 3 : Comments addressed. #

Total comments: 6

Patch Set 4 : Removed an unnecessary line. #

Patch Set 5 : Nits addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+285 lines, -94 lines) Patch
M chrome/browser/prefs/pref_service.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_service_unittest.cc View 1 2 2 chunks +90 lines, -0 lines 0 comments Download
M chrome/browser/prefs/pref_value_store.h View 1 2 2 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/prefs/pref_value_store.cc View 1 2 3 4 2 chunks +34 lines, -21 lines 0 comments Download
M chrome/browser/prefs/pref_value_store_unittest.cc View 1 2 3 4 2 chunks +128 lines, -72 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
bartfab (slow)
Mattias, could you have a look? I want to add a few more unit tests ...
8 years, 5 months ago (2012-07-26 19:48:33 UTC) #1
Mattias Nissler (ping if slow)
http://codereview.chromium.org/10821047/diff/1/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): http://codereview.chromium.org/10821047/diff/1/chrome/browser/prefs/pref_value_store.cc#newcode131 chrome/browser/prefs/pref_value_store.cc:131: } indentation http://codereview.chromium.org/10821047/diff/1/chrome/browser/prefs/pref_value_store.cc#newcode132 chrome/browser/prefs/pref_value_store.cc:132: return true; seems like the ...
8 years, 4 months ago (2012-07-27 07:26:11 UTC) #2
bartfab (slow)
https://chromiumcodereview.appspot.com/10821047/diff/1/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): https://chromiumcodereview.appspot.com/10821047/diff/1/chrome/browser/prefs/pref_value_store.cc#newcode131 chrome/browser/prefs/pref_value_store.cc:131: } On 2012/07/27 07:26:11, Mattias Nissler wrote: > indentation ...
8 years, 4 months ago (2012-07-27 12:14:49 UTC) #3
Mattias Nissler (ping if slow)
https://chromiumcodereview.appspot.com/10821047/diff/6001/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): https://chromiumcodereview.appspot.com/10821047/diff/6001/chrome/browser/prefs/pref_value_store.cc#newcode248 chrome/browser/prefs/pref_value_store.cc:248: i <= static_cast<size_t>(last_checked_store); ++i) { I'd rather put the ...
8 years, 4 months ago (2012-07-27 12:21:58 UTC) #4
bartfab (slow)
https://chromiumcodereview.appspot.com/10821047/diff/6001/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): https://chromiumcodereview.appspot.com/10821047/diff/6001/chrome/browser/prefs/pref_value_store.cc#newcode248 chrome/browser/prefs/pref_value_store.cc:248: i <= static_cast<size_t>(last_checked_store); ++i) { On 2012/07/27 12:21:58, Mattias ...
8 years, 4 months ago (2012-07-27 13:12:08 UTC) #5
Mattias Nissler (ping if slow)
LGTM with nits. https://chromiumcodereview.appspot.com/10821047/diff/3003/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): https://chromiumcodereview.appspot.com/10821047/diff/3003/chrome/browser/prefs/pref_value_store.cc#newcode107 chrome/browser/prefs/pref_value_store.cc:107: if (GetValueFromStoreWithType(name.c_str(), nit: In function calls, ...
8 years, 4 months ago (2012-07-27 13:21:45 UTC) #6
bartfab (slow)
https://chromiumcodereview.appspot.com/10821047/diff/3003/chrome/browser/prefs/pref_value_store.cc File chrome/browser/prefs/pref_value_store.cc (right): https://chromiumcodereview.appspot.com/10821047/diff/3003/chrome/browser/prefs/pref_value_store.cc#newcode107 chrome/browser/prefs/pref_value_store.cc:107: if (GetValueFromStoreWithType(name.c_str(), On 2012/07/27 13:21:45, Mattias Nissler wrote: > ...
8 years, 4 months ago (2012-07-27 13:24:42 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10821047/4008
8 years, 4 months ago (2012-07-27 17:03:24 UTC) #8
commit-bot: I haz the power
Try job failure for 10821047-4008 (retry) on win_rel for step "browser_tests". It's a second try, ...
8 years, 4 months ago (2012-07-27 19:46:37 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/10821047/4008
8 years, 4 months ago (2012-07-30 08:11:43 UTC) #10
commit-bot: I haz the power
8 years, 4 months ago (2012-07-30 10:14:04 UTC) #11
Change committed as 148939

Powered by Google App Engine
This is Rietveld 408576698