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

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: 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 033c67834fef1206b01fe6a60b5c5a4df7aecbbc..61a958aa52b7114e6668a6502c1af1c64f93a7ec 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, "API is not enabled");
iclelland 2016/07/13 14:30:09 Minor nit -- as a test-only interface, we can be a
Marijn Kruisselbrink 2016/07/13 19:16:08 Done
return false;
}
return frobulateNoEnabledCheck(internals);

Powered by Google App Engine
This is Rietveld 408576698