Make ExecutionContext aware about how it can return CoreProbeSink
Currently ToCoreProbe code checks the given ExecutionContext's type
and calls different code to get its CoreProbeSink, but in this way
we need to keep adding new ToCoreProbe code every time we add
new ExecutionContext, which sounds a bit cumbersome.
This CL adds ExecutionContext::GetProbeSink() virtual method
to mitigate that.
BUG=538751
Review-Url: https://codereview.chromium.org/2847703002
Cr-Original-Commit-Position: refs/heads/master@{#468243}
Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src
Cr-Mirrored-Commit: b66ac187d7971914c0cbff0bf3733feb5b27f006
9 files changed