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

Unified Diff: chrome/browser/ui/webui/net_internals/net_internals_ui.cc

Issue 10879058: Experiment to make net_error_list more greppable Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 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 | « no previous file | content/browser/download/base_file.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/net_internals/net_internals_ui.cc
diff --git a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
index de3b2e3d7fd731fbbe79e743778e996755be5b89..d2feca3aa4a8b5cb15798c86f6eac5d83d135964 100644
--- a/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
+++ b/chrome/browser/ui/webui/net_internals/net_internals_ui.cc
@@ -1665,8 +1665,10 @@ Value* NetInternalsUI::GetConstants() {
{
DictionaryValue* dict = new DictionaryValue();
+ const size_t kSkipErrPrefix = strlen("ERR_");
#define NET_ERROR(label, value) \
- dict->SetInteger(# label, static_cast<int>(value));
+ DCHECK(strlen(#label) > kSkipErrPrefix); \
+ dict->SetInteger(# label + kSkipErrPrefix, static_cast<int>(value));
#include "net/base/net_error_list.h"
#undef NET_ERROR
« no previous file with comments | « no previous file | content/browser/download/base_file.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698