| Index: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
|
| diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
|
| index afe5771e7119449b22eaeafff0e0c1413552841f..044a7d8897743c20db8147641bc4238122ac3f9d 100644
|
| --- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
|
| +++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.h
|
| @@ -8,7 +8,9 @@
|
| #include "core/CoreExport.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/Forward.h"
|
| +#include "wtf/HashSet.h"
|
| #include "wtf/Vector.h"
|
| +#include "wtf/text/WTFString.h"
|
|
|
| namespace blink {
|
|
|
| @@ -56,6 +58,11 @@ private:
|
| bool isFeatureEnabled(const String& featureName, String* errorMessage, WebTrialTokenValidator* = nullptr);
|
|
|
| bool hasValidToken(Vector<String> tokens, const String& featureName, String* errorMessage, WebTrialTokenValidator*);
|
| +
|
| + // Records whether an error message has been generated, for each feature
|
| + // name. Since these messages are generally written to the console, this is
|
| + // used to avoid cluttering the console with messages on every access.
|
| + HashSet<String> m_errorMessageGeneratedForFeature;
|
| };
|
|
|
| } // namespace blink
|
|
|