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

Side by Side Diff: sync/protocol/proto_value_conversions.cc

Issue 11090083: Makes sync code persist the date the node was added. I'm hoping this covers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 8 years, 2 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 unified diff | Download patch | Annotate | Revision Log
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 // Keep this file in sync with the .proto files in this directory. 5 // Keep this file in sync with the .proto files in this directory.
6 6
7 #include "sync/protocol/proto_value_conversions.h" 7 #include "sync/protocol/proto_value_conversions.h"
8 8
9 #include "base/base64.h" 9 #include "base/base64.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 SET_STR_REP(phone_home_whole_number); 264 SET_STR_REP(phone_home_whole_number);
265 return value; 265 return value;
266 } 266 }
267 267
268 DictionaryValue* BookmarkSpecificsToValue( 268 DictionaryValue* BookmarkSpecificsToValue(
269 const sync_pb::BookmarkSpecifics& proto) { 269 const sync_pb::BookmarkSpecifics& proto) {
270 DictionaryValue* value = new DictionaryValue(); 270 DictionaryValue* value = new DictionaryValue();
271 SET_STR(url); 271 SET_STR(url);
272 SET_BYTES(favicon); 272 SET_BYTES(favicon);
273 SET_STR(title); 273 SET_STR(title);
274 SET_INT64(creation_time_us);
274 return value; 275 return value;
275 } 276 }
276 277
277 DictionaryValue* ExtensionSettingSpecificsToValue( 278 DictionaryValue* ExtensionSettingSpecificsToValue(
278 const sync_pb::ExtensionSettingSpecifics& proto) { 279 const sync_pb::ExtensionSettingSpecifics& proto) {
279 DictionaryValue* value = new DictionaryValue(); 280 DictionaryValue* value = new DictionaryValue();
280 SET_STR(extension_id); 281 SET_STR(extension_id);
281 SET_STR(key); 282 SET_STR(key);
282 SET_STR(value); 283 SET_STR(value);
283 return value; 284 return value;
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
595 #undef SET_BYTES 596 #undef SET_BYTES
596 #undef SET_INT32 597 #undef SET_INT32
597 #undef SET_INT64 598 #undef SET_INT64
598 #undef SET_INT64_REP 599 #undef SET_INT64_REP
599 #undef SET_STR 600 #undef SET_STR
600 #undef SET_STR_REP 601 #undef SET_STR_REP
601 602
602 #undef SET_FIELD 603 #undef SET_FIELD
603 604
604 } // namespace syncer 605 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/bookmark_specifics.proto ('k') | sync/protocol/proto_value_conversions_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698