Make the undo/redo work for programmatic changes am: d6e08a1dae am: bb197792cb am: 649b5bc9e0
Make the undo/redo work for programmatic changes am: d6e08a1dae am: bb197792cb am: 649b5bc9e0

Original change: https://android-review.googlesource.com/c/platform/external/perfetto/+/1906450

Change-Id: I1d20706ea9bb702e9d1531d7c65d1f583a335ff5

google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto,google/perfetto