Fix crash when persisting user preferences (issue #2017)

This commit is contained in:
Marshall Greenblatt 2016-10-28 12:38:38 -04:00
parent ffab334e94
commit 4adaa2b552
1 changed files with 1 additions and 1 deletions

View File

@ -145,7 +145,7 @@ std::unique_ptr<PrefService> CreatePrefService(
if (store_on_disk) { if (store_on_disk) {
supervised_user_settings->Init( supervised_user_settings->Init(
cache_path, sequenced_task_runner.get(), false); cache_path, sequenced_task_runner.get(), true);
} else { } else {
scoped_refptr<TestingPrefStore> testing_pref_store = new TestingPrefStore(); scoped_refptr<TestingPrefStore> testing_pref_store = new TestingPrefStore();
testing_pref_store->SetInitializationCompleted(); testing_pref_store->SetInitializationCompleted();