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

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

Issue 11428004: Sync the bookmark's icon URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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 | 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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 return value; 283 return value;
284 } 284 }
285 285
286 DictionaryValue* BookmarkSpecificsToValue( 286 DictionaryValue* BookmarkSpecificsToValue(
287 const sync_pb::BookmarkSpecifics& proto) { 287 const sync_pb::BookmarkSpecifics& proto) {
288 DictionaryValue* value = new DictionaryValue(); 288 DictionaryValue* value = new DictionaryValue();
289 SET_STR(url); 289 SET_STR(url);
290 SET_BYTES(favicon); 290 SET_BYTES(favicon);
291 SET_STR(title); 291 SET_STR(title);
292 SET_INT64(creation_time_us); 292 SET_INT64(creation_time_us);
293 SET_STR(icon_url);
293 return value; 294 return value;
294 } 295 }
295 296
296 DictionaryValue* DeviceInfoSpecificsToValue( 297 DictionaryValue* DeviceInfoSpecificsToValue(
297 const sync_pb::DeviceInfoSpecifics& proto) { 298 const sync_pb::DeviceInfoSpecifics& proto) {
298 DictionaryValue* value = new DictionaryValue(); 299 DictionaryValue* value = new DictionaryValue();
299 SET_STR(cache_guid); 300 SET_STR(cache_guid);
300 SET_STR(client_name); 301 SET_STR(client_name);
301 SET_ENUM(device_type, GetDeviceTypeString); 302 SET_ENUM(device_type, GetDeviceTypeString);
302 SET_STR(sync_user_agent); 303 SET_STR(sync_user_agent);
(...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 #undef SET_BYTES 704 #undef SET_BYTES
704 #undef SET_INT32 705 #undef SET_INT32
705 #undef SET_INT64 706 #undef SET_INT64
706 #undef SET_INT64_REP 707 #undef SET_INT64_REP
707 #undef SET_STR 708 #undef SET_STR
708 #undef SET_STR_REP 709 #undef SET_STR_REP
709 710
710 #undef SET_FIELD 711 #undef SET_FIELD
711 712
712 } // namespace syncer 713 } // 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