From 5b43c249cec80819285b18d40806af6fb1e46cb1 Mon Sep 17 00:00:00 2001 From: Samuel Attard Date: Wed, 10 Oct 2018 16:49:31 +1100 Subject: [PATCH] Revert "FIXME: temporary debugging to maybe diagnose netlog issue on mac" This reverts commit f8f318da931f7cabfe7c2e1746c42deca593de67. --- atom/browser/api/atom_api_net_log.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/atom/browser/api/atom_api_net_log.cc b/atom/browser/api/atom_api_net_log.cc index 954f2d0d30f3..676dca42ebf4 100644 --- a/atom/browser/api/atom_api_net_log.cc +++ b/atom/browser/api/atom_api_net_log.cc @@ -11,7 +11,6 @@ #include "atom/common/native_mate_converters/callback.h" #include "atom/common/native_mate_converters/file_path_converter.h" #include "base/command_line.h" -#include "base/logging.h" #include "components/net_log/chrome_net_log.h" #include "content/public/browser/storage_partition.h" #include "native_mate/dictionary.h" @@ -104,13 +103,11 @@ void NetLog::StopLogging(mate::Arguments* args) { void NetLog::OnNewState(const base::DictionaryValue& state) { net_log_state_ = state.CreateDeepCopy(); - auto logging_state = GetLoggingState(); - LOG(INFO) << "Got new state: " << logging_state; if (stop_callback_queue_.empty()) return; - if (logging_state == "NOT_LOGGING") { + if (GetLoggingState() == "NOT_LOGGING") { for (auto& callback : stop_callback_queue_) { if (!callback.is_null()) net_log_writer_->GetFilePathToCompletedLog(callback);