DescriptionAvoid creating new TestingPrefServiceSyncable
Allow the unittest to use Profile::GetPref() instead of
creating its own Pref.
This also helps to solve the unit test crash in
https://codereview.chromium.org/11968032/.
Context: With https://codereview.chromium.org/11968032/,
GTKThemeService will be started at Profile creation which
creates Profile's Pref. Later the new
TestingPrefServiceSyncable that is created in
ProtocolHandlerRegistryTest::SetUp overwrites Profile's Pref
and leads to a crash in GTKThemeService's d'tor due to
invalid pointer.
TBR=ben@chromium.org
BUG=none
TEST=ProtocolHandlerRegistryTest.*
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=181642
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|