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

Unified Diff: chrome/browser/subresource_filter/subresource_filter_profile_context.cc

Issue 2829313002: Add SubresourceFilterProfileContext for all profile scoped context (Closed)
Patch Set: engedy review Created 3 years, 8 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: chrome/browser/subresource_filter/subresource_filter_profile_context.cc
diff --git a/chrome/browser/subresource_filter/subresource_filter_profile_context.cc b/chrome/browser/subresource_filter/subresource_filter_profile_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..b88de345556ff477c4a8f9bd83e64ad1e8872c4b
--- /dev/null
+++ b/chrome/browser/subresource_filter/subresource_filter_profile_context.cc
@@ -0,0 +1,19 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "chrome/browser/subresource_filter/subresource_filter_profile_context.h"
+
+#include "base/memory/ptr_util.h"
+#include "chrome/browser/subresource_filter/subresource_filter_content_settings_manager.h"
+
+SubresourceFilterProfileContext::SubresourceFilterProfileContext(
+ Profile* profile)
+ : content_settings_manager_(
+ base::MakeUnique<SubresourceFilterContentSettingsManager>(profile)) {}
+
+SubresourceFilterProfileContext::~SubresourceFilterProfileContext() {}
+
+void SubresourceFilterProfileContext::Shutdown() {
+ content_settings_manager_.reset();
+}

Powered by Google App Engine
This is Rietveld 408576698