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

Unified Diff: components/user_prefs/pref_registry_syncable.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 | « chrome/browser/prefs/pref_hash_filter.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/user_prefs/pref_registry_syncable.cc
diff --git a/components/user_prefs/pref_registry_syncable.cc b/components/user_prefs/pref_registry_syncable.cc
index b0e40a2842e4786d8065b218c961b92ab9997220..71c0b7039c69c6c2244dd47d138c037d4fca7f7b 100644
--- a/components/user_prefs/pref_registry_syncable.cc
+++ b/components/user_prefs/pref_registry_syncable.cc
@@ -188,9 +188,7 @@ void PrefRegistrySyncable::RegisterInt64Pref(
int64 default_value,
PrefSyncStatus sync_status) {
RegisterSyncablePreference(
- path,
- base::Value::CreateStringValue(base::Int64ToString(default_value)),
- sync_status);
+ path, new base::StringValue(default_value), sync_status);
}
void PrefRegistrySyncable::RegisterUint64Pref(
@@ -198,9 +196,7 @@ void PrefRegistrySyncable::RegisterUint64Pref(
uint64 default_value,
PrefSyncStatus sync_status) {
RegisterSyncablePreference(
- path,
- base::Value::CreateStringValue(base::Uint64ToString(default_value)),
- sync_status);
+ path, new base::StringValue(default_value), sync_status);
}
void PrefRegistrySyncable::RegisterSyncablePreference(
« no previous file with comments | « chrome/browser/prefs/pref_hash_filter.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698