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

Unified Diff: base/prefs/pref_registry_simple.cc

Issue 254473002: Add support for int64 and uint64 in values.h's API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test compile Created 6 years, 8 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_simple.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_simple.cc
diff --git a/base/prefs/pref_registry_simple.cc b/base/prefs/pref_registry_simple.cc
index 7453016a272f9d39b5b88376a7a4975a2d9e46d7..fa97fd6d075c53c0bdb860d32c89dea0e159c71d 100644
--- a/base/prefs/pref_registry_simple.cc
+++ b/base/prefs/pref_registry_simple.cc
@@ -5,7 +5,6 @@
#include "base/prefs/pref_registry_simple.h"
#include "base/files/file_path.h"
-#include "base/strings/string_number_conversions.h"
#include "base/values.h"
PrefRegistrySimple::PrefRegistrySimple() {
@@ -34,6 +33,16 @@ void PrefRegistrySimple::RegisterStringPref(const char* path,
RegisterPreference(path, new base::StringValue(default_value));
}
+void PrefRegistrySimple::RegisterInt64Pref(const char* path,
+ int64 default_value) {
+ RegisterPreference(path, new base::StringValue(default_value));
+}
+
+void PrefRegistrySimple::RegisterUint64Pref(const char* path,
+ uint64 default_value) {
+ RegisterPreference(path, new base::StringValue(default_value));
+}
+
void PrefRegistrySimple::RegisterFilePathPref(
const char* path,
const base::FilePath& default_value) {
@@ -58,9 +67,3 @@ void PrefRegistrySimple::RegisterDictionaryPref(
base::DictionaryValue* default_value) {
RegisterPreference(path, default_value);
}
-
-void PrefRegistrySimple::RegisterInt64Pref(const char* path,
- int64 default_value) {
- RegisterPreference(
- path, new base::StringValue(base::Int64ToString(default_value)));
-}
« no previous file with comments | « base/prefs/pref_registry_simple.h ('k') | base/prefs/pref_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698