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

Unified Diff: third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl

Issue 2880713002: Support combination of [OriginTrialEnabled] and [SecureContext] (Closed)
Patch Set: Rebase Created 3 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: third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
index 1d26638607c0a390911509f627ae838d212438ab..6146af2c7f5de7da52d72769ac6b0b4e2aa85ac6 100644
--- a/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/methods.cpp.tmpl
@@ -636,8 +636,7 @@ for (const auto& methodConfig : {{method.name}}MethodConfiguration)
{######################################}
{% macro install_conditionally_enabled_methods() %}
-{% if methods | conditionally_exposed(is_partial) %}
-{% for method in methods | conditionally_exposed(is_partial) %}
+{% for method in conditionally_enabled_methods %}
{% filter secure_context(method.overloads.secure_context_test_all
if method.overloads else
method.secure_context_test) %}
@@ -656,5 +655,4 @@ for (const auto& methodConfig : {{method.name}}MethodConfiguration)
{% endfilter %}{# exposed() #}
{% endfilter %}{# secure_context() #}
{% endfor %}
-{% endif %}
{%- endmacro %}

Powered by Google App Engine
This is Rietveld 408576698