diff options
author | eroman <eroman@chromium.org> | 2015-04-22 20:11:17 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-23 03:11:23 +0000 |
commit | 001c374c5356777641161bb11b8dd792508381ca (patch) | |
tree | 90ed1b55c3ab4a7aa3d09bb205c6e23035817d22 /google_apis | |
parent | 14ccb93f5f75f388b6a6b4a9c1eb434f61dbbfef (diff) | |
download | chromium_src-001c374c5356777641161bb11b8dd792508381ca.zip chromium_src-001c374c5356777641161bb11b8dd792508381ca.tar.gz chromium_src-001c374c5356777641161bb11b8dd792508381ca.tar.bz2 |
Refactor NetLog::LogLevel --> NetLogCaptureMode.
This is both a rename, and a functional change.
Before LogLevel was an enum, and consumers would compare its numeric value, or use it for serialization purposes. Whereas NetLogCaptureMode is a class that encapsulates the various capabilities for a logging level.
BUG=472710
TBR=asanka@chromium.org,sergeyu@chromium.org,yurys@chromium.org,bengr@chromium.org,asargent@chromium.org,zea@chromium.org,scherkus@chromium.org
Review URL: https://codereview.chromium.org/1059843002
Cr-Commit-Position: refs/heads/master@{#326440}
Diffstat (limited to 'google_apis')
-rw-r--r-- | google_apis/gcm/tools/mcs_probe.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/google_apis/gcm/tools/mcs_probe.cc b/google_apis/gcm/tools/mcs_probe.cc index 69aac65..0f464c5 100644 --- a/google_apis/gcm/tools/mcs_probe.cc +++ b/google_apis/gcm/tools/mcs_probe.cc @@ -359,7 +359,8 @@ void MCSProbe::InitializeNetworkState() { } if (log_file.get()) { logger_.reset(new net::WriteToFileNetLogObserver()); - logger_->set_log_level(net::NetLog::LOG_ALL_BUT_BYTES); + logger_->set_capture_mode( + net::NetLogCaptureMode::IncludeCookiesAndCredentials()); logger_->StartObserving(&net_log_, log_file.Pass(), nullptr, nullptr); } |