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

Unified Diff: content/browser/storage_partition_impl_map.cc

Issue 2116503004: Make Foreign Fetch an origin trial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments Created 4 years, 4 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: content/browser/storage_partition_impl_map.cc
diff --git a/content/browser/storage_partition_impl_map.cc b/content/browser/storage_partition_impl_map.cc
index 522c1ea5b8888587e25b7d5385b2acd723183999..c46b9590770979fed04947819bddd49d026a3c52 100644
--- a/content/browser/storage_partition_impl_map.cc
+++ b/content/browser/storage_partition_impl_map.cc
@@ -42,6 +42,7 @@
#include "content/public/browser/storage_partition.h"
#include "content/public/common/content_constants.h"
#include "content/public/common/content_switches.h"
+#include "content/public/common/origin_trial_policy.h"
#include "content/public/common/url_constants.h"
#include "crypto/sha2.h"
#include "net/url_request/url_request_context.h"
@@ -445,8 +446,7 @@ StoragePartitionImpl* StoragePartitionImplMap::Get(
request_interceptors.push_back(
ServiceWorkerRequestHandler::CreateInterceptor(
browser_context_->GetResourceContext()).release());
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures)) {
+ if (ForeignFetchRequestHandler::IsForeignFetchEnabled()) {
request_interceptors.push_back(
ForeignFetchRequestHandler::CreateInterceptor(
browser_context_->GetResourceContext())
« no previous file with comments | « content/browser/service_worker/link_header_support.cc ('k') | content/common/origin_trials/trial_token_validator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698