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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl

Issue 2846723003: Removed local RefPtr created from PassRefPtr arg in generated file. (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
index 6dd319b62f24c6520f59f4930b84d678cbbae63a..3341b396066f04e88e124f68a15f8845150014ce 100644
--- a/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
@@ -54,11 +54,6 @@ namespace probe {
{{sink_class}}* sink = To{{sink_class}}({{probe.params[0].name}});
if (!sink)
return;
-{% for param in probe.params %}
-{% if param.is_prp %}
- RefPtr<{{param.inner_type}}> {{param.value}} = {{param.name}};
-{% endif %}
-{% endfor %}
{% for agent in probe.agents %}
{% set class_name = agent | agent_name_to_class %}
if (sink->has{{class_name}}s()) {
@@ -90,7 +85,7 @@ CORE_EXPORT void {{probe.name}}({{ params_list(probe) }}) {
{% call probe_body(probe, "") %}
{%- for param in probe.params %}
{%- if not loop.first or "Keep" in param.options -%}
-{{param.value}}
+{{param.name}}
{%- if not loop.last %}, {% endif -%}
{%- endif -%}
{%- endfor %}

Powered by Google App Engine
This is Rietveld 408576698