Index: webrtc/call/rtc_event_log.cc |
diff --git a/webrtc/call/rtc_event_log.cc b/webrtc/call/rtc_event_log.cc |
index 840b210d15378dbbdf1ee079886674fe6064d27b..7ea1e167a1e0a15e905c1e47bb722de84b97018f 100644 |
--- a/webrtc/call/rtc_event_log.cc |
+++ b/webrtc/call/rtc_event_log.cc |
@@ -38,7 +38,9 @@ |
namespace webrtc { |
-// No-op implementation is used if flag is not set, or in tests. |
+#ifndef ENABLE_RTC_EVENT_LOG |
+ |
+// No-op implementation if flag is not set. |
class RtcEventLogNullImpl final : public RtcEventLog { |
public: |
bool StartLogging(const std::string& file_name, |
@@ -72,7 +74,7 @@ |
int32_t total_packets) override {} |
}; |
-#ifdef ENABLE_RTC_EVENT_LOG |
+#else // ENABLE_RTC_EVENT_LOG is defined |
class RtcEventLogImpl final : public RtcEventLog { |
public: |
@@ -463,8 +465,4 @@ |
#endif // ENABLE_RTC_EVENT_LOG |
} |
-std::unique_ptr<RtcEventLog> RtcEventLog::CreateNull() { |
- return std::unique_ptr<RtcEventLog>(new RtcEventLogNullImpl()); |
-} |
- |
} // namespace webrtc |