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

Unified Diff: chrome/browser/sync/syncable/syncable.cc

Issue 7649006: more changes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix another typo Created 9 years, 4 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/sync/syncable/model_type.cc ('k') | chrome/browser/sync/syncable/syncable_id.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/syncable/syncable.cc
diff --git a/chrome/browser/sync/syncable/syncable.cc b/chrome/browser/sync/syncable/syncable.cc
index cf30b99af14e15d35b3115702d14afb807870a8f..e1490cd8e108f0ff587d2a21089455f4a40242fa 100644
--- a/chrome/browser/sync/syncable/syncable.cc
+++ b/chrome/browser/sync/syncable/syncable.cc
@@ -273,7 +273,7 @@ void SetFieldValues(const EntryKernel& kernel,
// Helper functions for SetFieldValues().
StringValue* Int64ToValue(int64 i) {
- return Value::CreateStringValue(base::Int64ToString(i));
+ return base::StringValue::New(base::Int64ToString(i));
}
StringValue* IdToValue(const Id& id) {
@@ -304,20 +304,20 @@ DictionaryValue* EntryKernel::ToValue() const {
// Bit fields.
SetFieldValues(*this, kernel_info,
- &GetIndexedBitFieldString, &Value::CreateBooleanValue,
+ &GetIndexedBitFieldString, &base::BooleanValue::New,
BIT_FIELDS_BEGIN, INDEXED_BIT_FIELDS_END - 1);
SetFieldValues(*this, kernel_info,
- &GetIsDelFieldString, &Value::CreateBooleanValue,
+ &GetIsDelFieldString, &base::BooleanValue::New,
INDEXED_BIT_FIELDS_END, IS_DEL);
SetFieldValues(*this, kernel_info,
- &GetBitFieldString, &Value::CreateBooleanValue,
+ &GetBitFieldString, &base::BooleanValue::New,
IS_DEL + 1, BIT_FIELDS_END - 1);
// String fields.
{
// Pick out the function overload we want.
StringValue* (*string_to_value)(const std::string&) =
- &Value::CreateStringValue;
+ &base::StringValue::New;
SetFieldValues(*this, kernel_info,
&GetStringFieldString, string_to_value,
STRING_FIELDS_BEGIN, STRING_FIELDS_END - 1);
@@ -330,7 +330,7 @@ DictionaryValue* EntryKernel::ToValue() const {
// Bit temps.
SetFieldValues(*this, kernel_info,
- &GetBitTempString, &Value::CreateBooleanValue,
+ &GetBitTempString, &base::BooleanValue::New,
BIT_TEMPS_BEGIN, BIT_TEMPS_END - 1);
return kernel_info;
« no previous file with comments | « chrome/browser/sync/syncable/model_type.cc ('k') | chrome/browser/sync/syncable/syncable_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698