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

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

Issue 1840193006: Move token gathering into parser Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add file lost with git reset Created 4 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/OriginTrials.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl
index c95d7fbad9c5a1795703f366aa3913056988a916..3be722d2bd06ebd650097c76213bec8108c144cc 100644
--- a/third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/OriginTrials.cpp.tmpl
@@ -7,27 +7,12 @@
#include "core/origin_trials/OriginTrialContext.h"
#include "platform/RuntimeEnabledFeatures.h"
-namespace blink {
-
-OriginTrials::OriginTrials(PassOwnPtrWillBeRawPtr<OriginTrialContext> originTrialContext)
- : m_originTrialContext(originTrialContext) {}
-// static
-const char* OriginTrials::supplementName()
-{
- return "OriginTrials";
-}
+// This file defines only the automatically generated methods of the
+// OriginTrials class. For the remainder of the methods declared in the header,
+// see third_party/WebKit/Source/core/origin_trials/OriginTrialsImpl.cpp
-// static
-OriginTrials* OriginTrials::from(ExecutionContext* host)
-{
- OriginTrials* originTrials = reinterpret_cast<OriginTrials*>(WillBeHeapSupplement<ExecutionContext>::from(host, supplementName()));
- if (!originTrials) {
- originTrials = new OriginTrials(host->createOriginTrialContext());
- WillBeHeapSupplement<ExecutionContext>::provideTo(*host, supplementName(), adoptPtrWillBeNoop(originTrials));
- }
- return originTrials;
-}
+namespace blink {
{% for feature in features %}
{% if feature.origin_trial_feature_name %}
@@ -57,9 +42,4 @@ bool OriginTrials::{{feature.first_lowered_name}}EnabledImpl(String* errorMessag
{% endif %}
{% endfor %}
-DEFINE_TRACE(OriginTrials)
-{
- visitor->trace(m_originTrialContext);
- WillBeHeapSupplement<ExecutionContext>::trace(visitor);
-}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698