diff --git a/talk/app/webrtc/statstypes.h b/talk/app/webrtc/statstypes.h index 92e8f74171..22fc9d7348 100644 --- a/talk/app/webrtc/statstypes.h +++ b/talk/app/webrtc/statstypes.h @@ -228,6 +228,9 @@ class StatsReport { virtual bool Equals(const Id& other) const; virtual std::string ToString() const = 0; + // TODO(tommi): Remove this after rolling into Chrome. + const Id* operator->() const { return this; } + protected: Id(StatsType type); // Only meant for derived classes. const StatsType type_;