4ec7f9c25d
AddTrackMetadataBasedOnThread was looking at FLAG_timeline_recorder to determine if it can skip recording metadata. However the flag value is not necessary in sync with the current recorder because NativeRuntime.streamTimelineTo can reconfigure recorder itself without changing flag value. It seems strange to be checking the flag instead of using proper OOP anyway - the function is already virtual. This CL removes code which was checking the FLAG and instead overrides the method in subclasses which don't care about track metadata. TEST=existing tests were updated to cover this case Change-Id: I2a2859ab5ef28d8d6d2358259cc9ed8d6a6a6964 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/476400 Commit-Queue: Slava Egorov <vegorov@google.com> Reviewed-by: Daco Harkes <dacoharkes@google.com>