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

Unified Diff: content/renderer/browser_plugin/old/guest_to_embedder_channel.cc

Issue 10695133: Improve GPU process URL crash reporting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 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
Index: content/renderer/browser_plugin/old/guest_to_embedder_channel.cc
diff --git a/content/renderer/browser_plugin/old/guest_to_embedder_channel.cc b/content/renderer/browser_plugin/old/guest_to_embedder_channel.cc
index deffad59e3c64e8721085cdefc60eb375cfa391d..4df26754ba0feface13d27ef5a70becf8ff31066 100644
--- a/content/renderer/browser_plugin/old/guest_to_embedder_channel.cc
+++ b/content/renderer/browser_plugin/old/guest_to_embedder_channel.cc
@@ -18,6 +18,8 @@
#include "ppapi/shared_impl/api_id.h"
#include "ppapi/shared_impl/ppapi_globals.h"
#include "ppapi/shared_impl/var.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h"
#include "webkit/plugins/ppapi/event_conversion.h"
namespace content {
@@ -93,9 +95,12 @@ WebGraphicsContext3DCommandBufferImpl*
RenderViewImpl* render_view,
const WebKit::WebGraphicsContext3D::Attributes& attributes,
bool offscreen) {
+ GURL url;
+ if (render_view->webview()->mainFrame())
Ken Russell (switch to Gerrit) 2012/07/10 23:38:01 Under what conditions would this not be the case?
jbates 2012/07/11 00:07:18 Not sure, this was copied from render_view_impl.cc
+ url = GURL(render_view->webview()->mainFrame()->document().url());
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> context(
new WebGraphicsContext3DCommandBufferImpl(
- 0, GURL(), NULL,
+ 0, url, NULL,
render_view->AsWeakPtr()));
// Special case: RenderView initialization has not yet completed.

Powered by Google App Engine
This is Rietveld 408576698