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

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

Issue 2433563002: [Sync] Reimplement proto value conversions on top of field visitors. (Closed)
Patch Set: Remove temporary tests Created 4 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 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 27cffce49b4e985e3e4ddc70c3c62806028cf07e..765e120e2f07227da2625bfb3e77b1bb6de527f5 100644
--- a/components/sync/engine/cycle/sync_cycle_snapshot.cc
+++ b/components/sync/engine/cycle/sync_cycle_snapshot.cc
@@ -82,8 +82,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