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

Side by Side Diff: components/sync/syncable/entry_kernel.cc

Issue 2476493003: Remove FundamentalValue
Patch Set: Fix Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/sync/syncable/entry_kernel.h" 5 #include "components/sync/syncable/entry_kernel.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/json/string_escape.h" 9 #include "base/json/string_escape.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 } 124 }
125 125
126 base::StringValue* TimeToValue(const base::Time& t) { 126 base::StringValue* TimeToValue(const base::Time& t) {
127 return new base::StringValue(GetTimeDebugString(t)); 127 return new base::StringValue(GetTimeDebugString(t));
128 } 128 }
129 129
130 base::StringValue* IdToValue(const Id& id) { 130 base::StringValue* IdToValue(const Id& id) {
131 return id.ToValue(); 131 return id.ToValue();
132 } 132 }
133 133
134 base::FundamentalValue* BooleanToValue(bool bool_val) { 134 base::Value* BooleanToValue(bool bool_val) {
135 return new base::FundamentalValue(bool_val); 135 return new base::Value(bool_val);
136 } 136 }
137 137
138 base::StringValue* StringToValue(const std::string& str) { 138 base::StringValue* StringToValue(const std::string& str) {
139 return new base::StringValue(str); 139 return new base::StringValue(str);
140 } 140 }
141 141
142 base::StringValue* UniquePositionToValue(const UniquePosition& pos) { 142 base::StringValue* UniquePositionToValue(const UniquePosition& pos) {
143 return new base::StringValue(pos.ToDebugString()); 143 return new base::StringValue(pos.ToDebugString());
144 } 144 }
145 145
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 os << "TempFlags: "; 273 os << "TempFlags: ";
274 for (; i < BIT_TEMPS_END; ++i) { 274 for (; i < BIT_TEMPS_END; ++i) {
275 if (kernel->ref(static_cast<BitTemp>(i))) 275 if (kernel->ref(static_cast<BitTemp>(i)))
276 os << "#" << i - BIT_TEMPS_BEGIN << ", "; 276 os << "#" << i - BIT_TEMPS_BEGIN << ", ";
277 } 277 }
278 return os; 278 return os;
279 } 279 }
280 280
281 } // namespace syncable 281 } // namespace syncable
282 } // namespace syncer 282 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/protocol/proto_value_conversions.cc ('k') | components/sync_preferences/pref_model_associator_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698