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

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

Issue 93883004: Sync the launch type pref for apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: unfix nit because it prevents testing of how invalid values are handled Created 6 years, 11 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
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <string> 9 #include <string>
10 10
(...skipping 370 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 return value; 381 return value;
382 } 382 }
383 383
384 base::DictionaryValue* AppSpecificsToValue( 384 base::DictionaryValue* AppSpecificsToValue(
385 const sync_pb::AppSpecifics& proto) { 385 const sync_pb::AppSpecifics& proto) {
386 base::DictionaryValue* value = new base::DictionaryValue(); 386 base::DictionaryValue* value = new base::DictionaryValue();
387 SET(extension, ExtensionSpecificsToValue); 387 SET(extension, ExtensionSpecificsToValue);
388 SET(notification_settings, AppSettingsToValue); 388 SET(notification_settings, AppSettingsToValue);
389 SET_STR(app_launch_ordinal); 389 SET_STR(app_launch_ordinal);
390 SET_STR(page_ordinal); 390 SET_STR(page_ordinal);
391 SET_ENUM(launch_type, GetLaunchTypeString);
391 392
392 return value; 393 return value;
393 } 394 }
394 395
395 base::DictionaryValue* AutofillSpecificsToValue( 396 base::DictionaryValue* AutofillSpecificsToValue(
396 const sync_pb::AutofillSpecifics& proto) { 397 const sync_pb::AutofillSpecifics& proto) {
397 base::DictionaryValue* value = new base::DictionaryValue(); 398 base::DictionaryValue* value = new base::DictionaryValue();
398 SET_STR(name); 399 SET_STR(name);
399 SET_STR(value); 400 SET_STR(value);
400 SET_INT64_REP(usage_timestamp); 401 SET_INT64_REP(usage_timestamp);
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 #undef SET_BYTES 1039 #undef SET_BYTES
1039 #undef SET_INT32 1040 #undef SET_INT32
1040 #undef SET_INT64 1041 #undef SET_INT64
1041 #undef SET_INT64_REP 1042 #undef SET_INT64_REP
1042 #undef SET_STR 1043 #undef SET_STR
1043 #undef SET_STR_REP 1044 #undef SET_STR_REP
1044 1045
1045 #undef SET_FIELD 1046 #undef SET_FIELD
1046 1047
1047 } // namespace syncer 1048 } // namespace syncer
OLDNEW
« no previous file with comments | « sync/protocol/proto_enum_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698