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

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

Issue 11741003: Remove PrefServiceSimple, replacing it with PrefService and PrefRegistrySimple. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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_path.h" 8 #include "base/file_path.h"
9 #include "base/file_util.h" 9 #include "base/file_util.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 } // namespace 92 } // namespace
93 93
94 // TODO(joi): Find a better home for this. 94 // TODO(joi): Find a better home for this.
95 PrefServiceBase* PrefServiceBase::FromBrowserContext(BrowserContext* context) { 95 PrefServiceBase* PrefServiceBase::FromBrowserContext(BrowserContext* context) {
96 return static_cast<Profile*>(context)->GetPrefs(); 96 return static_cast<Profile*>(context)->GetPrefs();
97 } 97 }
98 98
99 namespace chrome_prefs { 99 namespace chrome_prefs {
100 100
101 PrefServiceSimple* CreateLocalState( 101 PrefService* CreateLocalState(
102 const FilePath& pref_filename, 102 const FilePath& pref_filename,
103 base::SequencedTaskRunner* pref_io_task_runner, 103 base::SequencedTaskRunner* pref_io_task_runner,
104 policy::PolicyService* policy_service, 104 policy::PolicyService* policy_service,
105 PrefStore* extension_prefs, 105 PrefStore* extension_prefs,
106 bool async) { 106 bool async) {
107 PrefServiceSyncableBuilder builder; 107 PrefServiceSyncableBuilder builder;
108 PrepareBuilder(&builder, 108 PrepareBuilder(&builder,
109 pref_filename, 109 pref_filename,
110 pref_io_task_runner, 110 pref_io_task_runner,
111 policy_service, 111 policy_service,
(...skipping 12 matching lines...) Expand all
124 PrepareBuilder(&builder, 124 PrepareBuilder(&builder,
125 pref_filename, 125 pref_filename,
126 pref_io_task_runner, 126 pref_io_task_runner,
127 policy_service, 127 policy_service,
128 extension_prefs, 128 extension_prefs,
129 async); 129 async);
130 return builder.CreateSyncable(); 130 return builder.CreateSyncable();
131 } 131 }
132 132
133 } // namespace chrome_prefs 133 } // namespace chrome_prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698