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

Unified Diff: components/sync/engine/cycle/sync_cycle_snapshot.cc

Issue 2374223003: Sync MDP: reimplement value conversions ontop of visitors
Patch Set: Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/engine/cycle/sync_cycle_snapshot.cc
diff --git a/components/sync/engine/cycle/sync_cycle_snapshot.cc b/components/sync/engine/cycle/sync_cycle_snapshot.cc
index 7b58a91a7c26286105ec97208c81b9c30f8fd09a..3279a74ae405029b008a0b105995ad03dc2c12d4 100644
--- a/components/sync/engine/cycle/sync_cycle_snapshot.cc
+++ b/components/sync/engine/cycle/sync_cycle_snapshot.cc
@@ -85,8 +85,7 @@ std::unique_ptr<base::DictionaryValue> SyncCycleSnapshot::ToValue() const {
value->SetInteger("numHierarchyConflicts", num_hierarchy_conflicts_);
value->SetInteger("numServerConflicts", num_server_conflicts_);
value->SetInteger("numEntries", num_entries_);
- value->SetString("legacySource",
- GetUpdatesSourceString(legacy_updates_source_));
+ value->SetString("legacySource", ProtoEnumToString(legacy_updates_source_));
value->SetBoolean("notificationsEnabled", notifications_enabled_);
std::unique_ptr<base::DictionaryValue> counter_entries(
« no previous file with comments | « components/sync/driver/about_sync_util.cc ('k') | components/sync/engine/events/configure_get_updates_request_event.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698