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

Unified Diff: base/prefs/pref_registry.h

Issue 81183005: Remove JsonPrefStore pruning of empty values on write. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove else Created 7 years, 1 month 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/persistent_pref_store.h ('k') | base/prefs/pref_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_registry.h
diff --git a/base/prefs/pref_registry.h b/base/prefs/pref_registry.h
index 6c7eac9f59588cee215a29c2aa19cf20acd7c6fb..896db3ffa62d16f1287c1579ef9105c491665d50 100644
--- a/base/prefs/pref_registry.h
+++ b/base/prefs/pref_registry.h
@@ -5,7 +5,6 @@
#ifndef BASE_PREFS_PREF_REGISTRY_H_
#define BASE_PREFS_PREF_REGISTRY_H_
-#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/prefs/base_prefs_export.h"
#include "base/prefs/pref_value_map.h"
@@ -29,7 +28,6 @@ class PrefStore;
class BASE_PREFS_EXPORT PrefRegistry : public base::RefCounted<PrefRegistry> {
public:
typedef PrefValueMap::const_iterator const_iterator;
- typedef base::Callback<void(const char*, base::Value*)> RegistrationCallback;
PrefRegistry();
@@ -45,15 +43,6 @@ class BASE_PREFS_EXPORT PrefRegistry : public base::RefCounted<PrefRegistry> {
// |pref_name| must be a previously registered preference.
void SetDefaultPrefValue(const char* pref_name, base::Value* value);
- // Exactly one callback can be set for registration. The callback
- // will be invoked each time registration has been performed on this
- // object.
- //
- // Calling this method after a callback has already been set will
- // make the object forget the previous callback and use the new one
- // instead.
- void SetRegistrationCallback(const RegistrationCallback& callback);
-
protected:
friend class base::RefCounted<PrefRegistry>;
virtual ~PrefRegistry();
@@ -64,8 +53,6 @@ class BASE_PREFS_EXPORT PrefRegistry : public base::RefCounted<PrefRegistry> {
scoped_refptr<DefaultPrefStore> defaults_;
private:
- RegistrationCallback registration_callback_;
-
DISALLOW_COPY_AND_ASSIGN(PrefRegistry);
};
« no previous file with comments | « base/prefs/persistent_pref_store.h ('k') | base/prefs/pref_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698