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

Unified Diff: base/prefs/pref_registry.cc

Issue 12330008: Get rid of the ability to unregister preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head for commit. Created 7 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/prefs/pref_registry.h ('k') | base/prefs/pref_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_registry.cc
diff --git a/base/prefs/pref_registry.cc b/base/prefs/pref_registry.cc
index c952f4093edb42930de9bbf105b14efc78e5b2a8..c6fad4eb33baef6979a01beb177f8f4831b84e76 100644
--- a/base/prefs/pref_registry.cc
+++ b/base/prefs/pref_registry.cc
@@ -33,21 +33,6 @@ void PrefRegistry::SetRegistrationCallback(
registration_callback_ = callback;
}
-void PrefRegistry::SetUnregistrationCallback(
- const UnregistrationCallback& callback) {
- unregistration_callback_ = callback;
-}
-
-void PrefRegistry::DeprecatedUnregisterPreference(const char* path) {
- DCHECK(defaults_->GetValue(path, NULL)) <<
- "Trying to unregister an unregistered pref: " << path;
-
- defaults_->RemoveDefaultValue(path);
-
- if (!unregistration_callback_.is_null())
- unregistration_callback_.Run(path);
-}
-
void PrefRegistry::RegisterPreference(const char* path,
base::Value* default_value) {
base::Value::Type orig_type = default_value->GetType();
« no previous file with comments | « base/prefs/pref_registry.h ('k') | base/prefs/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698