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

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

Issue 1001153002: Store the callstack of the IPC sender of ViewMsg_New (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Avoiding gcc warnings. Created 5 years, 9 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/common/view_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index b3c4d69f3bbdd0d3a306db31d6b549764370c9d6..fb4a9e7ba3035c153d1c9076410ea80ac68855a0 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -11,6 +11,7 @@
#include "base/callback.h"
#include "base/command_line.h"
+#include "base/debug/stack_trace.h"
#include "base/i18n/rtl.h"
#include "base/json/json_reader.h"
#include "base/message_loop/message_loop.h"
@@ -296,6 +297,13 @@ bool RenderViewHostImpl::CreateRenderView(
params.enable_auto_resize = auto_resize_enabled();
params.min_size = min_size_for_auto_resize();
params.max_size = max_size_for_auto_resize();
+ // TODO(lfg): Temporary. Only to help track http://crbug.com/464633.
+ base::debug::StackTrace trace;
+ size_t count;
+ const void* const* addresses = trace.Addresses(&count);
+ params.debug_info.reserve(count);
+ for (size_t i = 0; i < count; i++)
+ params.debug_info.push_back(reinterpret_cast<unsigned long>(addresses[i]));
GetResizeParams(&params.initial_size);
if (!is_active_) {
params.replicated_frame_state =
« no previous file with comments | « no previous file | content/common/view_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698