Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1483)

Unified Diff: chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/net/chrome_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
diff --git a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
index e53007b11381b0ebc00e8e11113022abcbdca0c6..5423b480f441877a010702738a3317546f12ebcb 100644
--- a/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
+++ b/chrome/browser/extensions/api/log_private/log_private_api_chromeos.cc
@@ -288,9 +288,10 @@ void LogPrivateAPI::StartObservingNetEvents(
return;
write_to_file_observer_.reset(new net::WriteToFileNetLogObserver());
- write_to_file_observer_->set_log_level(net::NetLog::LOG_ALL_BUT_BYTES);
+ write_to_file_observer_->set_capture_mode(
+ net::NetLogCaptureMode::IncludeCookiesAndCredentials());
write_to_file_observer_->StartObserving(io_thread->net_log(), file->Pass(),
- nullptr, nullptr);
+ nullptr, nullptr);
}
void LogPrivateAPI::MaybeStartNetInternalLogging(
@@ -304,7 +305,7 @@ void LogPrivateAPI::MaybeStartNetInternalLogging(
switch (event_sink_) {
case api::log_private::EVENT_SINK_CAPTURE: {
io_thread->net_log()->DeprecatedAddObserver(
- this, net::NetLog::LOG_ALL_BUT_BYTES);
+ this, net::NetLogCaptureMode::IncludeCookiesAndCredentials());
break;
}
case api::log_private::EVENT_SINK_FILE: {
« no previous file with comments | « no previous file | chrome/browser/net/chrome_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698