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

Side by Side Diff: chrome/browser/subresource_filter/subresource_filter_profile_context.cc

Issue 2838063002: [on-hold][subresource_filter] Add ActivationTracker to track all activated contents (Closed)
Patch Set: fix incognito 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 unified diff | Download patch
OLDNEW
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698