Do not capture cookies and credentials (#13065)

This commit is contained in:
Zhuo Lu 2018-05-24 14:46:54 -07:00 committed by Shelley Vohr
parent 01a9b32637
commit fd25f594cd

View file

@ -50,8 +50,7 @@ void NetLog::StartLogging() {
base::FilePath log_path = base::FilePath log_path =
command_line->GetSwitchValuePath(switches::kLogNetLog); command_line->GetSwitchValuePath(switches::kLogNetLog);
std::unique_ptr<base::Value> constants(GetConstants()); std::unique_ptr<base::Value> constants(GetConstants());
net::NetLogCaptureMode capture_mode = net::NetLogCaptureMode capture_mode = net::NetLogCaptureMode::Default();
net::NetLogCaptureMode::IncludeCookiesAndCredentials();
file_net_log_observer_ = file_net_log_observer_ =
net::FileNetLogObserver::CreateUnbounded(log_path, std::move(constants)); net::FileNetLogObserver::CreateUnbounded(log_path, std::move(constants));