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

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

Issue 7888047: Added Instant preference syncing and tests. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Add ability for applications to sync position on NTP Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/sync/protocol/proto_value_conversions.h" 7 #include "chrome/browser/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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 SET_STR(body_text); 175 SET_STR(body_text);
176 SET_STR(link_url); 176 SET_STR(link_url);
177 SET_STR(link_text); 177 SET_STR(link_text);
178 return value; 178 return value;
179 } 179 }
180 180
181 DictionaryValue* AppSpecificsToValue( 181 DictionaryValue* AppSpecificsToValue(
182 const sync_pb::AppSpecifics& proto) { 182 const sync_pb::AppSpecifics& proto) {
183 DictionaryValue* value = new DictionaryValue(); 183 DictionaryValue* value = new DictionaryValue();
184 SET(extension, ExtensionSpecificsToValue); 184 SET(extension, ExtensionSpecificsToValue);
185
186 SET_INT32(app_launch_index);
187 SET_INT32(page_index);
188
185 return value; 189 return value;
186 } 190 }
187 191
188 DictionaryValue* AutofillSpecificsToValue( 192 DictionaryValue* AutofillSpecificsToValue(
189 const sync_pb::AutofillSpecifics& proto) { 193 const sync_pb::AutofillSpecifics& proto) {
190 DictionaryValue* value = new DictionaryValue(); 194 DictionaryValue* value = new DictionaryValue();
191 SET_STR(name); 195 SET_STR(name);
192 SET_STR(value); 196 SET_STR(value);
193 SET_INT64_REP(usage_timestamp); 197 SET_INT64_REP(usage_timestamp);
194 SET(profile, AutofillProfileSpecificsToValue); 198 SET(profile, AutofillProfileSpecificsToValue);
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 #undef SET_BOOL 368 #undef SET_BOOL
365 #undef SET_BYTES 369 #undef SET_BYTES
366 #undef SET_INT32 370 #undef SET_INT32
367 #undef SET_INT64 371 #undef SET_INT64
368 #undef SET_INT64_REP 372 #undef SET_INT64_REP
369 #undef SET_STR 373 #undef SET_STR
370 374
371 #undef SET_EXTENSION 375 #undef SET_EXTENSION
372 376
373 } // namespace browser_sync 377 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/protocol/app_specifics.proto ('k') | chrome/browser/ui/webui/ntp/app_launcher_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698