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

Unified Diff: net/log/net_log_util.cc

Issue 2517513004: Move QUIC error code utility methods to quic_error_codes.{h,cc}, and rename them slightly. No beha… (Closed)
Patch Set: Created 4 years, 1 month 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 | net/net.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/net_log_util.cc
diff --git a/net/log/net_log_util.cc b/net/log/net_log_util.cc
index 763e5892d9369fb2360c9cc72d7047ba7f1f8c37..fdc59188f0520c5beb275b05e313928e17f75f60 100644
--- a/net/log/net_log_util.cc
+++ b/net/log/net_log_util.cc
@@ -37,8 +37,8 @@
#include "net/proxy/proxy_config.h"
#include "net/proxy/proxy_retry_info.h"
#include "net/proxy/proxy_service.h"
+#include "net/quic/core/quic_error_codes.h"
#include "net/quic/core/quic_protocol.h"
-#include "net/quic/core/quic_utils.h"
#include "net/socket/ssl_client_socket.h"
#include "net/url_request/url_request.h"
#include "net/url_request/url_request_context.h"
@@ -213,8 +213,7 @@ std::unique_ptr<base::DictionaryValue> GetNetConstants() {
for (QuicErrorCode error = QUIC_NO_ERROR; error < QUIC_LAST_ERROR;
error = static_cast<QuicErrorCode>(error + 1)) {
- dict->SetInteger(QuicUtils::ErrorToString(error),
- static_cast<int>(error));
+ dict->SetInteger(QuicErrorCodeToString(error), static_cast<int>(error));
}
constants_dict->Set("quicError", std::move(dict));
@@ -228,7 +227,7 @@ std::unique_ptr<base::DictionaryValue> GetNetConstants() {
for (QuicRstStreamErrorCode error = QUIC_STREAM_NO_ERROR;
error < QUIC_STREAM_LAST_ERROR;
error = static_cast<QuicRstStreamErrorCode>(error + 1)) {
- dict->SetInteger(QuicUtils::StreamErrorToString(error),
+ dict->SetInteger(QuicRstStreamErrorCodeToString(error),
static_cast<int>(error));
}
« no previous file with comments | « no previous file | net/net.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698