blob: b4de604d672cede011fe66863c4f13ec31e2ca0c [file] [log] [blame]
// Copyright (c) 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "content/public/browser/webrtc_event_logger.h"
#include "base/logging.h"
#include "content/public/browser/browser_thread.h"
namespace content {
WebRtcEventLogger* g_webrtc_event_logger = nullptr;
WebRtcEventLogger* WebRtcEventLogger::Get() {
return g_webrtc_event_logger;
WebRtcEventLogger::WebRtcEventLogger() {
g_webrtc_event_logger = this;
// Checking that g_webrtc_event_logger was never set before, in a way that
// would not interfere with unit tests, is overkill.
WebRtcEventLogger::~WebRtcEventLogger() {
DCHECK_EQ(g_webrtc_event_logger, this);
g_webrtc_event_logger = nullptr;
} // namespace content