Index: content/browser/service_worker/link_header_support.cc |
diff --git a/content/browser/service_worker/link_header_support.cc b/content/browser/service_worker/link_header_support.cc |
index 32ce5777969044119357c0eb381863847c7686c7..9f1fe47107a138bb8a724b1df0842c6fec8e6b50 100644 |
--- a/content/browser/service_worker/link_header_support.cc |
+++ b/content/browser/service_worker/link_header_support.cc |
@@ -7,6 +7,7 @@ |
#include "base/command_line.h" |
#include "base/strings/string_split.h" |
#include "base/strings/string_util.h" |
+#include "base/time/time.h" |
#include "components/link_header_util/link_header_util.h" |
#include "content/browser/loader/resource_message_filter.h" |
#include "content/browser/loader/resource_request_info_impl.h" |
@@ -42,7 +43,8 @@ void HandleServiceWorkerLink( |
if (!base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableExperimentalWebPlatformFeatures) && |
- !TrialTokenValidator::RequestEnablesFeature(request, "ForeignFetch")) { |
+ !TrialTokenValidator::RequestEnablesFeature(request, "ForeignFetch", |
+ base::Time::Now())) { |
// TODO(mek): Log attempt to use without having correct token? |
return; |
} |