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

Unified Diff: net/base/load_log_util.cc

Issue 363025: Improve the display of LoadLogs when truncation occurs.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Change -1 to be a constant instead Created 11 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 | « net/base/load_log_unittest.cc ('k') | net/base/load_log_util_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/load_log_util.cc
===================================================================
--- net/base/load_log_util.cc (revision 31195)
+++ net/base/load_log_util.cc (working copy)
@@ -33,6 +33,11 @@
if (i > 0)
result += "\n";
+ if (log->num_entries_truncated() > 0 && i + 1 == entries_.size()) {
+ result += StringPrintf(" ... Truncated %d entries ...\n",
+ log->num_entries_truncated());
+ }
+
int indentation_spaces = entries_[i].indentation * kSpacesPerIndentation;
std::string event_str = GetEventString(i);
« no previous file with comments | « net/base/load_log_unittest.cc ('k') | net/base/load_log_util_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698