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

Unified Diff: chrome/renderer/chrome_render_view_observer.cc

Issue 48113021: Expose WebGL extension WEBGL_debug_renderer_info to Google domains (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update the test Created 7 years, 2 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 | « chrome/renderer/chrome_render_view_observer.h ('k') | content/test/data/gpu/webgl_debug_renderer_info.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/chrome_render_view_observer.cc
diff --git a/chrome/renderer/chrome_render_view_observer.cc b/chrome/renderer/chrome_render_view_observer.cc
index 6fcdf2a3dbb6b94d89ee527b332932f7cb016216..239af55a8586f0e81a7bcf8aad78e0431a0f1d15 100644
--- a/chrome/renderer/chrome_render_view_observer.cc
+++ b/chrome/renderer/chrome_render_view_observer.cc
@@ -754,6 +754,15 @@ bool ChromeRenderViewObserver::allowRunningInsecureContent(
return true;
}
+bool ChromeRenderViewObserver::allowWebGLDebugRendererInfo(WebFrame* frame) {
+ bool allowed = false;
+ Send(new ChromeViewHostMsg_IsWebGLDebugRendererInfoAllowed(
+ routing_id(),
+ GURL(frame->top()->document().securityOrigin().toString().utf8()),
+ &allowed));
+ return allowed;
+}
+
void ChromeRenderViewObserver::didNotAllowPlugins(WebFrame* frame) {
content_settings_->DidNotAllowPlugins();
}
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.h ('k') | content/test/data/gpu/webgl_debug_renderer_info.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698