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

Unified Diff: third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp

Issue 2123323004: Simplify OriginTrialContext and the way it validates tokens. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark enum as obsolete Created 4 years, 5 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/core/origin_trials/testing/InternalsFrobulate.cpp
diff --git a/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp b/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp
index aed634e711b7600d9b41135232fd6a5d9a02aa18..08c5c63d6909f961438680f39cc2a9afd8e2ab32 100644
--- a/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp
+++ b/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp
@@ -14,8 +14,8 @@ namespace blink {
bool InternalsFrobulate::frobulate(ScriptState* scriptState, Internals& internals, ExceptionState& exceptionState)
{
String errorMessage;
- if (!OriginTrials::originTrialsSampleAPIEnabled(scriptState->getExecutionContext(), errorMessage)) {
- exceptionState.throwDOMException(NotSupportedError, errorMessage);
+ if (!OriginTrials::originTrialsSampleAPIEnabled(scriptState->getExecutionContext())) {
+ exceptionState.throwDOMException(NotSupportedError, "The Origin Trials Sample API has not been enabled in this context");
return false;
}
return frobulateNoEnabledCheck(internals);

Powered by Google App Engine
This is Rietveld 408576698