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

Unified Diff: chrome/browser/net/chrome_network_delegate.cc

Issue 646033008: Add some more debugging info for invalid referrers (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_network_delegate.cc
diff --git a/chrome/browser/net/chrome_network_delegate.cc b/chrome/browser/net/chrome_network_delegate.cc
index 9a6a2219e05cde02b3de9225283d86eebb86d2a2..515568b3d92bfcd6d33ceb5c6d30b4698e60e212 100644
--- a/chrome/browser/net/chrome_network_delegate.cc
+++ b/chrome/browser/net/chrome_network_delegate.cc
@@ -9,6 +9,7 @@
#include <vector>
#include "base/base_paths.h"
+#include "base/debug/alias.h"
#include "base/debug/dump_without_crashing.h"
#include "base/debug/trace_event.h"
#include "base/logging.h"
@@ -231,6 +232,13 @@ void ReportInvalidReferrerSend(const GURL& target_url,
const GURL& referrer_url) {
base::RecordAction(
base::UserMetricsAction("Net.URLRequest_StartJob_InvalidReferrer"));
+ // http://crbug.com/422871
+ char url_buf[128];
+ char referrer_buf[128];
+ base::strlcpy(url_buf, target_url.spec().c_str(), arraysize(url_buf));
+ base::strlcpy(referrer_buf, referrer_url.spec().c_str(), arraysize(url_buf));
+ base::debug::Alias(url_buf);
+ base::debug::Alias(referrer_buf);
base::debug::DumpWithoutCrashing();
NOTREACHED();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698