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

Unified Diff: content/browser/renderer_host/render_message_filter.cc

Issue 8907055: Add debugging info for crbug.com/99242 crashes. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 9 years 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: content/browser/renderer_host/render_message_filter.cc
diff --git a/content/browser/renderer_host/render_message_filter.cc b/content/browser/renderer_host/render_message_filter.cc
index 238a1a27271cda7943b857aaa5a6cce40585911b..ab36e3bb0a50dbe23084c8e3fda8e7f0ecd2b271 100644
--- a/content/browser/renderer_host/render_message_filter.cc
+++ b/content/browser/renderer_host/render_message_filter.cc
@@ -452,6 +452,12 @@ void RenderMessageFilter::OnGetCookies(const GURL& url,
return;
}
+ // If we crash here, figure out what URL the renderer was requesting.
+ // http://crbug.com/99242
+ char url_buf[128];
+ base::strlcpy(url_buf, url.spec().c_str(), arraysize(url_buf));
+ base::debug::Alias(url_buf);
+
net::URLRequestContext* context = GetRequestContextForURL(url);
net::CookieMonster* cookie_monster =
context->cookie_store()->GetCookieMonster();
« 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