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

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: 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') | content/renderer/render_frame_impl.cc » ('J')
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 c9083b4bd5ca92f00f85d4a185b4bb1c128bfdfc..a258aeaf6193135c60897d6091609a22f3b36ba3 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') | content/renderer/render_frame_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698