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

Unified Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2972083002: Enable Clear-Site-Data by default. (Closed)
Patch Set: Rebase. Created 3 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
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/loader/resource_dispatcher_host_impl.cc
diff --git a/content/browser/loader/resource_dispatcher_host_impl.cc b/content/browser/loader/resource_dispatcher_host_impl.cc
index 88185f1810fd478c38e8877b32308f60dda790a5..f6d1b57844abdb072b37d84dd1c1f4f28eb23478 100644
--- a/content/browser/loader/resource_dispatcher_host_impl.cc
+++ b/content/browser/loader/resource_dispatcher_host_impl.cc
@@ -87,7 +87,6 @@
#include "content/public/browser/stream_info.h"
#include "content/public/common/browser_side_navigation_policy.h"
#include "content/public/common/content_features.h"
-#include "content/public/common/content_switches.h"
#include "content/public/common/resource_request.h"
#include "content/public/common/resource_request_body.h"
#include "content/public/common/resource_request_completion_status.h"
@@ -347,10 +346,7 @@ ResourceDispatcherHostImpl::ResourceDispatcherHostImpl(
allow_cross_origin_auth_prompt_(false),
create_download_handler_intercept_(download_handler_intercept),
main_thread_task_runner_(base::ThreadTaskRunnerHandle::Get()),
- io_thread_task_runner_(io_thread_runner),
- experimental_web_features_enabled_(
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableExperimentalWebPlatformFeatures)) {
+ io_thread_task_runner_(io_thread_runner) {
DCHECK(main_thread_task_runner_->BelongsToCurrentThread());
DCHECK(!g_resource_dispatcher_host);
g_resource_dispatcher_host = this;
@@ -1603,13 +1599,11 @@ ResourceDispatcherHostImpl::AddStandardHandlers(
base::MakeUnique<WakeLockResourceThrottle>(request->url().host()));
}
- // The experimental Clear-Site-Data throttle.
- if (experimental_web_features_enabled_) {
- std::unique_ptr<ResourceThrottle> clear_site_data_throttle =
- ClearSiteDataThrottle::MaybeCreateThrottleForRequest(request);
- if (clear_site_data_throttle)
- throttles.push_back(std::move(clear_site_data_throttle));
- }
+ // The Clear-Site-Data throttle.
+ std::unique_ptr<ResourceThrottle> clear_site_data_throttle =
+ ClearSiteDataThrottle::MaybeCreateThrottleForRequest(request);
+ if (clear_site_data_throttle)
+ throttles.push_back(std::move(clear_site_data_throttle));
// TODO(ricea): Stop looking this up so much.
ResourceRequestInfoImpl* info = ResourceRequestInfoImpl::ForRequest(request);
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698