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

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

Issue 1743623002: [Experimental Framework] Make the OriginTrialContext a member of ExecutionContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clean up unused headers Created 4 years, 10 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 f2b361faf60643d6c4c63fdd99a320308bd31333..9073c648738073aa13a5db82ea27774a1f0868f5 100644
--- a/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp
+++ b/third_party/WebKit/Source/core/origin_trials/testing/InternalsFrobulate.cpp
@@ -6,6 +6,7 @@
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
+#include "core/dom/ExecutionContext.h"
jbroman 2016/03/04 15:23:48 I don't think this include is required anymore.
iclelland 2016/03/07 15:38:37 Done.
#include "core/origin_trials/OriginTrials.h"
namespace blink {
@@ -14,7 +15,7 @@ namespace blink {
bool InternalsFrobulate::frobulate(ScriptState* scriptState, Internals& internals, ExceptionState& exceptionState)
{
String errorMessage;
- if (!OriginTrials::experimentalFrameworkSampleAPIEnabled(scriptState->executionContext(), errorMessage)) {
+ if (!OriginTrials::from(scriptState->executionContext())->experimentalFrameworkSampleAPIEnabled(errorMessage)) {
exceptionState.throwDOMException(NotSupportedError, errorMessage);
return false;
}

Powered by Google App Engine
This is Rietveld 408576698