SET_INT32(http_status_code);
SET_INT32(referrer_policy);
SET_BOOL(is_restored);
+ SET_REP(navigation_redirect, NavigationRedirectToValue);
+ SET_STR(last_navigation_redirect_url);
+ return value;
+}
+
+base::DictionaryValue* NavigationRedirectToValue(
+ const sync_pb::NavigationRedirect& proto) {
+ base::DictionaryValue* value = new base::DictionaryValue();
+ SET_STR(url);
return value;
}
SET_BOOL(preferred);
SET_INT64(date_created);
SET_BOOL(blacklisted);
+ SET_INT32(type);
+ SET_INT32(times_used);
return value;
}
base::DictionaryValue* value = new base::DictionaryValue();
SET_STR_REP(app_id);
SET_STR(settings_display_name);
+ SET_STR(app_name);
+ SET_STR(settings_url);
+ SET_STR(info_url);
SET(icon, SyncedNotificationImageToValue);
// TODO(petewil): Add fields for the monochrome icon when it is available.
return value;
SET_STR(app_launch_ordinal);
SET_STR(page_ordinal);
SET_ENUM(launch_type, GetLaunchTypeString);
+ SET_STR(bookmark_app_url);
+ SET_STR(bookmark_app_description);
return value;
}
SET_STR(address_home_street_address);
SET_STR(address_home_sorting_code);
SET_STR(address_home_dependent_locality);
+ SET_STR(address_home_language_code);
SET_STR_REP(phone_home_whole_number);
return value;
return value;
}
+base::DictionaryValue* EnhancedBookmarksFlagsToValue(
+ const sync_pb::EnhancedBookmarksFlags& proto) {
+ base::DictionaryValue* value = new base::DictionaryValue();
+ SET_BOOL(enabled);
+ SET_STR(extension_id);
+ return value;
+}
+
} // namespace
base::DictionaryValue* ExperimentsSpecificsToValue(
SET_EXPERIMENT_ENABLED_FIELD(pre_commit_update_avoidance);
SET(favicon_sync, FaviconSyncFlagsToValue);
SET_EXPERIMENT_ENABLED_FIELD(gcm_channel);
- SET_EXPERIMENT_ENABLED_FIELD(enhanced_bookmarks);
+ SET(enhanced_bookmarks, EnhancedBookmarksFlagsToValue);
SET_EXPERIMENT_ENABLED_FIELD(gcm_invalidations);
return value;
}
SET_STR(update_url);
SET_BOOL(enabled);
SET_BOOL(incognito_enabled);
+ SET_BOOL(remote_install);
SET_STR(name);
return value;
}
return value;
}
+base::DictionaryValue* DataTypeContextToValue(
+ const sync_pb::DataTypeContext& proto) {
+ base::DictionaryValue* value = new base::DictionaryValue();
+ SET_INT32(data_type_id);
+ SET_STR(context);
+ SET_INT64(version);
+ return value;
+}
+
base::DictionaryValue* GetUpdatesCallerInfoToValue(
const sync_pb::GetUpdatesCallerInfo& proto) {
base::DictionaryValue* value = new base::DictionaryValue();
SET_BOOL(need_encryption_key);
SET_BOOL(create_mobile_bookmarks_folder);
SET_ENUM(get_updates_origin, GetUpdatesOriginString);
+ SET_REP(client_contexts, DataTypeContextToValue);
return value;
}
SyncEntitiesToValue(proto.entries(), include_specifics));
SET_INT64(changes_remaining);
SET_REP(new_progress_marker, DataTypeProgressMarkerToValue);
+ SET_REP(context_mutations, DataTypeContextToValue);
return value;
}
return value;
}
+base::DictionaryValue* AttachmentIdProtoToValue(
+ const sync_pb::AttachmentIdProto& proto) {
+ base::DictionaryValue* value = new base::DictionaryValue();
+ SET_STR(unique_id);
+ return value;
+}
+
#undef SET
#undef SET_REP