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

Side by Side Diff: chrome/browser/prefs/chrome_pref_service_factory.cc

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_factory.h ('k') | chrome/browser/prefs/chrome_pref_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698