OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/prefs/chrome_pref_service_factory.h" | 5 #include "chrome/browser/prefs/chrome_pref_service_factory.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 extension_prefs, | 109 extension_prefs, |
110 async); | 110 async); |
111 return builder.Create(pref_registry); | 111 return builder.Create(pref_registry); |
112 } | 112 } |
113 | 113 |
114 PrefServiceSyncable* CreateProfilePrefs( | 114 PrefServiceSyncable* CreateProfilePrefs( |
115 const base::FilePath& pref_filename, | 115 const base::FilePath& pref_filename, |
116 base::SequencedTaskRunner* pref_io_task_runner, | 116 base::SequencedTaskRunner* pref_io_task_runner, |
117 policy::PolicyService* policy_service, | 117 policy::PolicyService* policy_service, |
118 const scoped_refptr<PrefStore>& extension_prefs, | 118 const scoped_refptr<PrefStore>& extension_prefs, |
119 const scoped_refptr<PrefRegistrySyncable>& pref_registry, | 119 const scoped_refptr<user_prefs::PrefRegistrySyncable>& pref_registry, |
120 bool async) { | 120 bool async) { |
121 PrefServiceSyncableBuilder builder; | 121 PrefServiceSyncableBuilder builder; |
122 PrepareBuilder(&builder, | 122 PrepareBuilder(&builder, |
123 pref_filename, | 123 pref_filename, |
124 pref_io_task_runner, | 124 pref_io_task_runner, |
125 policy_service, | 125 policy_service, |
126 extension_prefs, | 126 extension_prefs, |
127 async); | 127 async); |
128 return builder.CreateSyncable(pref_registry); | 128 return builder.CreateSyncable(pref_registry); |
129 } | 129 } |
130 | 130 |
131 } // namespace chrome_prefs | 131 } // namespace chrome_prefs |
OLD | NEW |