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

Unified Diff: chrome/browser/chrome_content_browser_client.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: 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
Index: chrome/browser/chrome_content_browser_client.cc
diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
index e4347f8edd524a8b1ac01c4988b837de54b0225c..bf8b0ec7c13ac7fd39ef60d9a653741fae2198db 100644
--- a/chrome/browser/chrome_content_browser_client.cc
+++ b/chrome/browser/chrome_content_browser_client.cc
@@ -2644,4 +2644,15 @@ bool ChromeContentBrowserClient::IsPluginAllowedToCallRequestOSFileHandle(
#endif
}
+bool ChromeContentBrowserClient::AllowWebGLDebugRendererInfoForDomain(
+ const GURL& url) const {
+ // TODO(zmo): in this experimental stage, we only expose WebGL extension
+ // WEBGL_debug_renderer_info for Google domains. Once we finish the experiment
+ // and make a decision, this extension should be avaiable to all or none.
+ return google_util::IsGoogleDomainUrl(
+ url,
+ google_util::ALLOW_SUBDOMAIN,
+ google_util::DISALLOW_NON_STANDARD_PORTS);
+}
+
} // namespace chrome

Powered by Google App Engine
This is Rietveld 408576698