Index: third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
diff --git a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
index ae76e45bf3e223645e336f66eec5aedaaea7744d..6d3f81da71111c51b9c5f3b4e3e81f5b73e912e3 100644 |
--- a/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
+++ b/third_party/WebKit/Source/core/origin_trials/OriginTrialContext.cpp |
@@ -11,17 +11,13 @@ |
#include "platform/RuntimeEnabledFeatures.h" |
#include "platform/weborigin/SecurityOrigin.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebSecurityOrigin.h" |
#include "public/platform/WebTrialTokenValidator.h" |
namespace blink { |
namespace { |
-String getCurrentOrigin(ExecutionContext* executionContext) |
-{ |
- return executionContext->getSecurityOrigin()->toString(); |
-} |
- |
String getDisabledMessage(const String& featureName) |
{ |
// TODO(chasej): Update message with URL to experiments site, when live |
@@ -74,7 +70,7 @@ bool OriginTrialContext::isFeatureEnabled(const String& featureName, String* err |
bool OriginTrialContext::hasValidToken(Vector<String> tokens, const String& featureName, String* errorMessage, WebTrialTokenValidator* validator) |
{ |
- String origin = getCurrentOrigin(getExecutionContext()); |
+ WebSecurityOrigin origin(getExecutionContext()->getSecurityOrigin()); |
for (const String& token : tokens) { |
// Check with the validator service to verify the signature. |