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

Unified Diff: net/base/net_log_logger.cc

Issue 432553003: Remove redundant mapping of net errors to strings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Response to comments Created 6 years, 4 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 | « net/base/net_errors.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/net_log_logger.cc
diff --git a/net/base/net_log_logger.cc b/net/base/net_log_logger.cc
index aa5ec4021f81b974164d15cfae98887a4313ad93..f6ac5dd7188c0c8e49f0eb105baa666c92264dec 100644
--- a/net/base/net_log_logger.cc
+++ b/net/base/net_log_logger.cc
@@ -13,6 +13,7 @@
#include "base/values.h"
#include "net/base/address_family.h"
#include "net/base/load_states.h"
+#include "net/base/net_errors.h"
#include "net/quic/quic_protocol.h"
#include "net/quic/quic_utils.h"
@@ -120,7 +121,7 @@ base::DictionaryValue* NetLogLogger::GetConstants() {
base::DictionaryValue* dict = new base::DictionaryValue();
#define NET_ERROR(label, value) \
- dict->SetInteger(# label, static_cast<int>(value));
+ dict->SetInteger(ErrorToShortString(value), static_cast<int>(value));
#include "net/base/net_error_list.h"
#undef NET_ERROR
« no previous file with comments | « net/base/net_errors.cc ('k') | net/quic/crypto/proof_verifier_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698