| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/subresource_filter/subresource_filter_profile_context.h
" | 5 #include "chrome/browser/subresource_filter/subresource_filter_profile_context.h
" |
| 6 | 6 |
| 7 #include "base/memory/ptr_util.h" | 7 #include "base/memory/ptr_util.h" |
| 8 #include "chrome/browser/subresource_filter/subresource_filter_activation_tracke
r.h" |
| 8 #include "chrome/browser/subresource_filter/subresource_filter_content_settings_
manager.h" | 9 #include "chrome/browser/subresource_filter/subresource_filter_content_settings_
manager.h" |
| 9 | 10 |
| 10 SubresourceFilterProfileContext::SubresourceFilterProfileContext( | 11 SubresourceFilterProfileContext::SubresourceFilterProfileContext( |
| 11 Profile* profile) | 12 Profile* profile) |
| 12 : content_settings_manager_( | 13 : content_settings_manager_( |
| 13 base::MakeUnique<SubresourceFilterContentSettingsManager>(profile)) {} | 14 base::MakeUnique<SubresourceFilterContentSettingsManager>(profile)), |
| 15 activation_tracker_( |
| 16 base::MakeUnique<SubresourceFilterActivationTracker>()) {} |
| 14 | 17 |
| 15 SubresourceFilterProfileContext::~SubresourceFilterProfileContext() {} | 18 SubresourceFilterProfileContext::~SubresourceFilterProfileContext() {} |
| 16 | 19 |
| 17 void SubresourceFilterProfileContext::Shutdown() { | 20 void SubresourceFilterProfileContext::Shutdown() { |
| 18 content_settings_manager_.reset(); | 21 content_settings_manager_.reset(); |
| 19 } | 22 } |
| OLD | NEW |