diff options
author | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 20:33:53 +0000 |
---|---|---|
committer | jbates@chromium.org <jbates@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-29 20:33:53 +0000 |
commit | d91233b7e37833ad9a2ed62d833caf1bb1714b11 (patch) | |
tree | 65389b08d381958da1fbc8a32b4f7c1a5707ef3f /content/renderer/render_widget_fullscreen_pepper.cc | |
parent | 8059999d949d87c2b57cd00752208df9a29f0653 (diff) | |
download | chromium_src-d91233b7e37833ad9a2ed62d833caf1bb1714b11.zip chromium_src-d91233b7e37833ad9a2ed62d833caf1bb1714b11.tar.gz chromium_src-d91233b7e37833ad9a2ed62d833caf1bb1714b11.tar.bz2 |
Setting last active URL in GPU process for crash reporting. For now this is just one URL, because the windows implementation of breakpad is very rigid, and can not easily deal with arbitrary numbers of URLs. In the future, it may be possible to be smart about what URL is reported based on what GPU commands are being processed, but because of the asynchronous nature of GPU commands, it may be more relevant to just use the last loaded URL.
BUG=75633
TEST=go to page with gpu content, cause gpu-process to crash, or go to about:gpucrash, then observe URL in crash report
Review URL: http://codereview.chromium.org/6733051
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79732 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/renderer/render_widget_fullscreen_pepper.cc')
-rw-r--r-- | content/renderer/render_widget_fullscreen_pepper.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/content/renderer/render_widget_fullscreen_pepper.cc b/content/renderer/render_widget_fullscreen_pepper.cc index fba73ff..3d85b29 100644 --- a/content/renderer/render_widget_fullscreen_pepper.cc +++ b/content/renderer/render_widget_fullscreen_pepper.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -139,18 +139,21 @@ class PepperWidget : public WebWidget { // static RenderWidgetFullscreenPepper* RenderWidgetFullscreenPepper::Create( int32 opener_id, RenderThreadBase* render_thread, - webkit::ppapi::PluginInstance* plugin) { + webkit::ppapi::PluginInstance* plugin, + const GURL& active_url) { DCHECK_NE(MSG_ROUTING_NONE, opener_id); scoped_refptr<RenderWidgetFullscreenPepper> widget( - new RenderWidgetFullscreenPepper(render_thread, plugin)); + new RenderWidgetFullscreenPepper(render_thread, plugin, active_url)); widget->Init(opener_id); return widget.release(); } RenderWidgetFullscreenPepper::RenderWidgetFullscreenPepper( RenderThreadBase* render_thread, - webkit::ppapi::PluginInstance* plugin) + webkit::ppapi::PluginInstance* plugin, + const GURL& active_url) : RenderWidgetFullscreen(render_thread), + active_url_(active_url), plugin_(plugin), context_(NULL), buffer_(0), @@ -266,7 +269,8 @@ void RenderWidgetFullscreenPepper::CreateContext() { host, routing_id(), "GL_OES_packed_depth_stencil GL_OES_depth24", - attribs); + attribs, + active_url_); if (!context_ || !InitContext()) { DestroyContext(); return; |