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

Unified Diff: content/renderer/pepper/pepper_browser_connection.cc

Issue 1132093003: Add metrics to record TCP/UDP connections made from Flash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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/pepper/pepper_browser_connection.cc
diff --git a/content/renderer/pepper/pepper_browser_connection.cc b/content/renderer/pepper/pepper_browser_connection.cc
index 892506ede2f22526f71e64034407459c69121ee6..f8e08b21d17e606abb40507636ca51a8f36d551b 100644
--- a/content/renderer/pepper/pepper_browser_connection.cc
+++ b/content/renderer/pepper/pepper_browser_connection.cc
@@ -42,11 +42,15 @@ void PepperBrowserConnection::DidCreateInProcessInstance(
int render_frame_id,
const GURL& document_url,
const GURL& plugin_url) {
+ // We don't need to know if it's a privileged context for in-process plugins.
+ // In process plugins are deprecated and the only in-process plugin that
+ // exists is the "NaCl plugin" which will never need to know this.
+ bool is_privileged_context = false;
Send(new ViewHostMsg_DidCreateInProcessInstance(
instance,
// Browser provides the render process id.
- PepperRendererInstanceData(
- 0, render_frame_id, document_url, plugin_url)));
+ PepperRendererInstanceData(0, render_frame_id, document_url, plugin_url,
+ is_privileged_context)));
}
void PepperBrowserConnection::DidDeleteInProcessInstance(PP_Instance instance) {

Powered by Google App Engine
This is Rietveld 408576698