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

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

Issue 1009673002: Remove enhanced bookmarks sync experiment (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: rebase Created 5 years, 9 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
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 400 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 namespace { 411 namespace {
412 412
413 base::DictionaryValue* FaviconSyncFlagsToValue( 413 base::DictionaryValue* FaviconSyncFlagsToValue(
414 const sync_pb::FaviconSyncFlags& proto) { 414 const sync_pb::FaviconSyncFlags& proto) {
415 base::DictionaryValue* value = new base::DictionaryValue(); 415 base::DictionaryValue* value = new base::DictionaryValue();
416 SET_BOOL(enabled); 416 SET_BOOL(enabled);
417 SET_INT32(favicon_sync_limit); 417 SET_INT32(favicon_sync_limit);
418 return value; 418 return value;
419 } 419 }
420 420
421 base::DictionaryValue* EnhancedBookmarksFlagsToValue(
422 const sync_pb::EnhancedBookmarksFlags& proto) {
423 base::DictionaryValue* value = new base::DictionaryValue();
424 SET_BOOL(enabled);
425 SET_STR(extension_id);
426 return value;
427 }
428
429 } // namespace 421 } // namespace
430 422
431 base::DictionaryValue* ExperimentsSpecificsToValue( 423 base::DictionaryValue* ExperimentsSpecificsToValue(
432 const sync_pb::ExperimentsSpecifics& proto) { 424 const sync_pb::ExperimentsSpecifics& proto) {
433 base::DictionaryValue* value = new base::DictionaryValue(); 425 base::DictionaryValue* value = new base::DictionaryValue();
434 SET_EXPERIMENT_ENABLED_FIELD(keystore_encryption); 426 SET_EXPERIMENT_ENABLED_FIELD(keystore_encryption);
435 SET_EXPERIMENT_ENABLED_FIELD(history_delete_directives); 427 SET_EXPERIMENT_ENABLED_FIELD(history_delete_directives);
436 SET_EXPERIMENT_ENABLED_FIELD(autofill_culling); 428 SET_EXPERIMENT_ENABLED_FIELD(autofill_culling);
437 SET_EXPERIMENT_ENABLED_FIELD(pre_commit_update_avoidance); 429 SET_EXPERIMENT_ENABLED_FIELD(pre_commit_update_avoidance);
438 SET(favicon_sync, FaviconSyncFlagsToValue); 430 SET(favicon_sync, FaviconSyncFlagsToValue);
439 SET_EXPERIMENT_ENABLED_FIELD(gcm_channel); 431 SET_EXPERIMENT_ENABLED_FIELD(gcm_channel);
440 SET(enhanced_bookmarks, EnhancedBookmarksFlagsToValue);
441 SET_EXPERIMENT_ENABLED_FIELD(gcm_invalidations); 432 SET_EXPERIMENT_ENABLED_FIELD(gcm_invalidations);
442 SET_EXPERIMENT_ENABLED_FIELD(wallet_sync); 433 SET_EXPERIMENT_ENABLED_FIELD(wallet_sync);
443 return value; 434 return value;
444 } 435 }
445 436
446 base::DictionaryValue* ExtensionSettingSpecificsToValue( 437 base::DictionaryValue* ExtensionSettingSpecificsToValue(
447 const sync_pb::ExtensionSettingSpecifics& proto) { 438 const sync_pb::ExtensionSettingSpecifics& proto) {
448 base::DictionaryValue* value = new base::DictionaryValue(); 439 base::DictionaryValue* value = new base::DictionaryValue();
449 SET_STR(extension_id); 440 SET_STR(extension_id);
450 SET_STR(key); 441 SET_STR(key);
(...skipping 617 matching lines...) Expand 10 before | Expand all | Expand 10 after
1068 #undef SET_BYTES 1059 #undef SET_BYTES
1069 #undef SET_INT32 1060 #undef SET_INT32
1070 #undef SET_INT64 1061 #undef SET_INT64
1071 #undef SET_INT64_REP 1062 #undef SET_INT64_REP
1072 #undef SET_STR 1063 #undef SET_STR
1073 #undef SET_STR_REP 1064 #undef SET_STR_REP
1074 1065
1075 #undef SET_FIELD 1066 #undef SET_FIELD
1076 1067
1077 } // namespace syncer 1068 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698