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

Unified Diff: third_party/WebKit/Source/bindings/templates/utilities.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/utilities.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
index 5040010b78ed8894b20fa9219ae5213f6d4343fb..b91635aa89bae367963eeb2090a92aace01b0925 100644
--- a/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/utilities.cpp.tmpl
@@ -53,16 +53,3 @@ const char* {{enum_variable}}[] = {
{% endif %}
{{property_location_list | join(' | ')}}
{%- endmacro %}
-
-
-{% macro check_origin_trial(member, isolate="info.GetIsolate()") -%}
-ExecutionContext* executionContext = CurrentExecutionContext({{isolate}});
-String errorMessage;
-if (!{{member.origin_trial_enabled_function}}(executionContext, errorMessage)) {
- V8SetReturnValue(info, v8::Undefined(info.GetIsolate()));
- if (!errorMessage.IsEmpty()) {
- executionContext->AddConsoleMessage(ConsoleMessage::Create(kJSMessageSource, kErrorMessageLevel, errorMessage));
- }
- return;
-}
-{% endmacro %}

Powered by Google App Engine
This is Rietveld 408576698