diff options
Diffstat (limited to 'chrome/browser/media')
-rw-r--r-- | chrome/browser/media/webrtc_logging_handler_host.cc | 15 | ||||
-rw-r--r-- | chrome/browser/media/webrtc_logging_handler_host.h | 7 |
2 files changed, 0 insertions, 22 deletions
diff --git a/chrome/browser/media/webrtc_logging_handler_host.cc b/chrome/browser/media/webrtc_logging_handler_host.cc index 31759bb..611bc52 100644 --- a/chrome/browser/media/webrtc_logging_handler_host.cc +++ b/chrome/browser/media/webrtc_logging_handler_host.cc @@ -203,14 +203,6 @@ void WebRtcLoggingHandlerHost::DiscardLog(const GenericDoneCallback& callback) { FireGenericDoneCallback(&discard_callback, true, ""); } -void WebRtcLoggingHandlerHost::LogMessage(const std::string& message) { - BrowserThread::PostTask( - BrowserThread::IO, - FROM_HERE, - base::Bind( - &WebRtcLoggingHandlerHost::AddLogMessageFromBrowser, this, message)); -} - void WebRtcLoggingHandlerHost::OnChannelClosing() { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); if (logging_state_ == STARTED || logging_state_ == STOPPED) { @@ -242,13 +234,6 @@ bool WebRtcLoggingHandlerHost::OnMessageReceived(const IPC::Message& message, return handled; } -void WebRtcLoggingHandlerHost::AddLogMessageFromBrowser( - const std::string& message) { - DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); - if (logging_state_ == STARTED) - LogToCircularBuffer(message); -} - void WebRtcLoggingHandlerHost::OnAddLogMessage(const std::string& message) { DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); if (logging_state_ == STARTED || logging_state_ == STOPPING) diff --git a/chrome/browser/media/webrtc_logging_handler_host.h b/chrome/browser/media/webrtc_logging_handler_host.h index 3ce35cb..5f7f5a4 100644 --- a/chrome/browser/media/webrtc_logging_handler_host.h +++ b/chrome/browser/media/webrtc_logging_handler_host.h @@ -61,9 +61,6 @@ class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter { // called on the IO thread. void DiscardLog(const GenericDoneCallback& callback); - // Adds a message to the log. - void LogMessage(const std::string& message); - // May be called on any thread. |upload_log_on_render_close_| is used // for decision making and it's OK if it changes before the execution based // on that decision has finished. @@ -102,13 +99,9 @@ class WebRtcLoggingHandlerHost : public content::BrowserMessageFilter { virtual bool OnMessageReceived(const IPC::Message& message, bool* message_was_ok) OVERRIDE; - // Handles log message requests from both renderer process. void OnAddLogMessage(const std::string& message); void OnLoggingStoppedInRenderer(); - // Handles log message requests from browser process. - void AddLogMessageFromBrowser(const std::string& message); - void StartLoggingIfAllowed(); void DoStartLogging(); void LogMachineInfo(); |