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

Side by Side Diff: base/prefs/pref_service.h

Issue 24453002: Remove unused method PrefService::ReloadPersistentPrefs(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | base/prefs/pref_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // This provides a way to access the application's current preferences. 5 // This provides a way to access the application's current preferences.
6 6
7 // Chromium settings and storage represent user-selected preferences and 7 // Chromium settings and storage represent user-selected preferences and
8 // information and MUST not be extracted, overwritten or modified except 8 // information and MUST not be extracted, overwritten or modified except
9 // through Chromium defined APIs. 9 // through Chromium defined APIs.
10 10
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 PrefService( 143 PrefService(
144 PrefNotifierImpl* pref_notifier, 144 PrefNotifierImpl* pref_notifier,
145 PrefValueStore* pref_value_store, 145 PrefValueStore* pref_value_store,
146 PersistentPrefStore* user_prefs, 146 PersistentPrefStore* user_prefs,
147 PrefRegistry* pref_registry, 147 PrefRegistry* pref_registry,
148 base::Callback<void(PersistentPrefStore::PrefReadError)> 148 base::Callback<void(PersistentPrefStore::PrefReadError)>
149 read_error_callback, 149 read_error_callback,
150 bool async); 150 bool async);
151 virtual ~PrefService(); 151 virtual ~PrefService();
152 152
153 // Reloads the data from file. This should only be called when the importer
154 // is running during first run, and the main process may not change pref
155 // values while the importer process is running. Returns true on success.
156 bool ReloadPersistentPrefs();
157
158 // Lands pending writes to disk. This should only be used if we need to save 153 // Lands pending writes to disk. This should only be used if we need to save
159 // immediately (basically, during shutdown). 154 // immediately (basically, during shutdown).
160 void CommitPendingWrite(); 155 void CommitPendingWrite();
161 156
162 // Returns true if the preference for the given preference name is available 157 // Returns true if the preference for the given preference name is available
163 // and is managed. 158 // and is managed.
164 bool IsManagedPreference(const char* pref_name) const; 159 bool IsManagedPreference(const char* pref_name) const;
165 160
166 // Returns |true| if a preference with the given name is available and its 161 // Returns |true| if a preference with the given name is available and its
167 // value can be changed by the user. 162 // value can be changed by the user.
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 340
346 // Local cache of registered Preference objects. The pref_registry_ 341 // Local cache of registered Preference objects. The pref_registry_
347 // is authoritative with respect to what the types and default values 342 // is authoritative with respect to what the types and default values
348 // of registered preferences are. 343 // of registered preferences are.
349 mutable PreferenceMap prefs_map_; 344 mutable PreferenceMap prefs_map_;
350 345
351 DISALLOW_COPY_AND_ASSIGN(PrefService); 346 DISALLOW_COPY_AND_ASSIGN(PrefService);
352 }; 347 };
353 348
354 #endif // BASE_PREFS_PREF_SERVICE_H_ 349 #endif // BASE_PREFS_PREF_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | base/prefs/pref_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698