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

Unified Diff: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc

Issue 2890253002: [subresource_filter] Move OnReloadRequested to the ChromeClient (Closed)
Patch Set: remove from the base class Created 3 years, 7 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: components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
diff --git a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
index 15368f6e513fc29968a5f68dacc0806648ee60e5..5cfe2dcc19b45a09a4be617bd6ed54532b14c7d9 100644
--- a/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
+++ b/components/subresource_filter/content/browser/content_subresource_filter_driver_factory.cc
@@ -4,9 +4,7 @@
#include "components/subresource_filter/content/browser/content_subresource_filter_driver_factory.h"
-#include "base/feature_list.h"
#include "base/memory/ptr_util.h"
-#include "base/metrics/histogram_macros.h"
#include "base/rand_util.h"
#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
@@ -157,22 +155,6 @@ bool ContentSubresourceFilterDriverFactory::
return false;
}
-void ContentSubresourceFilterDriverFactory::OnReloadRequested() {
- UMA_HISTOGRAM_BOOLEAN("SubresourceFilter.Prompt.NumReloads", true);
- const GURL& whitelist_url = web_contents()->GetLastCommittedURL();
-
- // Only whitelist via content settings when using the experimental UI,
- // otherwise could get into a situation where content settings cannot be
- // adjusted.
- if (base::FeatureList::IsEnabled(
- subresource_filter::kSafeBrowsingSubresourceFilterExperimentalUI)) {
- client_->WhitelistByContentSettings(whitelist_url);
- } else {
- client_->WhitelistInCurrentWebContents(whitelist_url);
- }
- web_contents()->GetController().Reload(content::ReloadType::NORMAL, true);
-}
-
void ContentSubresourceFilterDriverFactory::WillProcessResponse(
content::NavigationHandle* navigation_handle) {
DCHECK(!navigation_handle->IsSameDocument());

Powered by Google App Engine
This is Rietveld 408576698