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

Issue 6353015: Fix broken PrefService::preference_set() returning not all registered preferences. (Closed)

Created:
9 years, 11 months ago by battre
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, anantha, Nirnimesh, dyu1, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix broken PrefService::preference_set() returning not all registered preferences. This CL allows somebody to ask the PrefService for the effective preference values. BUG=70809 TEST=prefs.PrefsTest.testUnderTheHoodPref and prefs.PrefsTest.testHomepagePrefs of chrome/test/functional/prefs.py will work again. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=72790

Patch Set 1 #

Total comments: 6

Patch Set 2 : Addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -21 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 1 chunk +2 lines, -7 lines 0 comments Download
M chrome/browser/prefs/pref_service.h View 1 2 chunks +11 lines, -8 lines 0 comments Download
M chrome/browser/prefs/pref_service.cc View 1 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/browser/prefs/value_map_pref_store.h View 4 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/prefs/value_map_pref_store.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/test/functional/PYAUTO_TESTS View 1 chunk +0 lines, -3 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
battre
Please review.
9 years, 11 months ago (2011-01-26 16:45:55 UTC) #1
Mattias Nissler (ping if slow)
Here you go. http://codereview.chromium.org/6353015/diff/1/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/6353015/diff/1/chrome/browser/automation/testing_automation_provider.cc#newcode2795 chrome/browser/automation/testing_automation_provider.cc:2795: profile_->GetPrefs()->GetPreferenceValues(items); Seems like we could create ...
9 years, 11 months ago (2011-01-26 17:55:11 UTC) #2
Nirnimesh
Edit in PYAUTO_TESTS LGTM. Thanks for fixing.
9 years, 11 months ago (2011-01-26 20:55:51 UTC) #3
battre
Done. http://codereview.chromium.org/6353015/diff/1/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/6353015/diff/1/chrome/browser/automation/testing_automation_provider.cc#newcode2795 chrome/browser/automation/testing_automation_provider.cc:2795: profile_->GetPrefs()->GetPreferenceValues(items); On 2011/01/26 17:55:11, Mattias Nissler wrote: > ...
9 years, 11 months ago (2011-01-27 09:53:27 UTC) #4
Mattias Nissler (ping if slow)
9 years, 10 months ago (2011-01-27 12:42:34 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698