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

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

Issue 2790973002: [instrumentation] Introduce JSON5 config files for probe generator. (Closed)
Patch Set: add missing config files Created 3 years, 9 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/platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
similarity index 90%
rename from third_party/WebKit/Source/platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl
rename to third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
index b8a466f4f4175fb8dc977d3996ada004ededeb17..d6f15e9f98a5ee78528b27a6a95b62a41065247a 100644
--- a/third_party/WebKit/Source/platform/probe/templates/InstrumentingProbesImpl.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/InstrumentingProbesImpl.cpp.tmpl
@@ -11,14 +11,7 @@
{% endfor %}
#include "{{sink_class}}.h"
{% for agent in agents %}
-{% set class_name = agent | agent_name_to_class %}
-{% if class_name == "PerformanceMonitor" %}
-#include "core/frame/PerformanceMonitor.h"
-{% elif class_name.startswith("Platform") %}
-#include "platform/probe/{{class_name}}.h"
-{% else %}
-#include "core/inspector/{{class_name}}.h"
-{% endif %}
+#include "{{agent | agent_name_to_include}}"
{% endfor %}
namespace blink {

Powered by Google App Engine
This is Rietveld 408576698