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

Unified Diff: net/log/net_log_capture_mode.cc

Issue 1122483004: Remove NetLog::GetCaptureMode() and NetLogCaptureMode::None() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mmenke_refactor
Patch Set: Created 5 years, 7 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
Index: net/log/net_log_capture_mode.cc
diff --git a/net/log/net_log_capture_mode.cc b/net/log/net_log_capture_mode.cc
index 501911e0a9b6dc7b063e219350919942276a54e9..b6519ae3b0a6795f4290efff0bb76febc139e9b7 100644
--- a/net/log/net_log_capture_mode.cc
+++ b/net/log/net_log_capture_mode.cc
@@ -52,11 +52,6 @@ NetLogCaptureMode NetLogCaptureMode::IncludeSocketBytes() {
return NetLogCaptureMode(INCLUDE_SOCKET_BYTES);
}
-NetLogCaptureMode NetLogCaptureMode::Max(NetLogCaptureMode mode1,
- NetLogCaptureMode mode2) {
- return NetLogCaptureMode(std::max(mode1.value_, mode2.value_));
-}
-
bool NetLogCaptureMode::enabled() const {
return value_ != NONE;
}
@@ -78,18 +73,10 @@ bool NetLogCaptureMode::operator!=(NetLogCaptureMode mode) const {
}
int32_t NetLogCaptureMode::ToInternalValueForTesting() const {
- return ToInternalValue();
+ return value_;
}
NetLogCaptureMode::NetLogCaptureMode(uint32_t value) : value_(value) {
}
-NetLogCaptureMode NetLogCaptureMode::FromInternalValue(int32_t value) {
- return NetLogCaptureMode(value);
-}
-
-int32_t NetLogCaptureMode::ToInternalValue() const {
- return value_;
-}
-
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698