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

Side by Side Diff: chrome/browser/browsing_data/browsing_data_remover_factory.cc

Issue 2554413002: Extract embedder-specific data types from BrowsingDataRemover (Closed)
Patch Set: Addressed nit. Created 4 years 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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/browsing_data/browsing_data_remover_factory.h" 5 #include "chrome/browser/browsing_data/browsing_data_remover_factory.h"
6 6
7 #include "base/memory/ptr_util.h"
7 #include "base/memory/singleton.h" 8 #include "base/memory/singleton.h"
8 #include "chrome/browser/autofill/personal_data_manager_factory.h" 9 #include "chrome/browser/autofill/personal_data_manager_factory.h"
9 #include "chrome/browser/browsing_data/browsing_data_remover.h" 10 #include "chrome/browser/browsing_data/browsing_data_remover.h"
11 #include "chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h"
10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" 12 #include "chrome/browser/content_settings/host_content_settings_map_factory.h"
11 #include "chrome/browser/domain_reliability/service_factory.h" 13 #include "chrome/browser/domain_reliability/service_factory.h"
12 #include "chrome/browser/history/history_service_factory.h" 14 #include "chrome/browser/history/history_service_factory.h"
13 #include "chrome/browser/history/web_history_service_factory.h" 15 #include "chrome/browser/history/web_history_service_factory.h"
14 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h" 16 #include "chrome/browser/net/spdyproxy/data_reduction_proxy_chrome_settings_fact ory.h"
15 #include "chrome/browser/password_manager/password_store_factory.h" 17 #include "chrome/browser/password_manager/password_store_factory.h"
16 #include "chrome/browser/prerender/prerender_manager_factory.h" 18 #include "chrome/browser/prerender/prerender_manager_factory.h"
17 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/search_engines/template_url_service_factory.h" 20 #include "chrome/browser/search_engines/template_url_service_factory.h"
19 #include "chrome/browser/sessions/tab_restore_service_factory.h" 21 #include "chrome/browser/sessions/tab_restore_service_factory.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 content::BrowserContext* context) const { 87 content::BrowserContext* context) const {
86 // For guest profiles the browsing data is in the OTR profile. 88 // For guest profiles the browsing data is in the OTR profile.
87 Profile* profile = static_cast<Profile*>(context); 89 Profile* profile = static_cast<Profile*>(context);
88 DCHECK(!profile->IsGuestSession() || profile->IsOffTheRecord()); 90 DCHECK(!profile->IsGuestSession() || profile->IsOffTheRecord());
89 91
90 return profile; 92 return profile;
91 } 93 }
92 94
93 KeyedService* BrowsingDataRemoverFactory::BuildServiceInstanceFor( 95 KeyedService* BrowsingDataRemoverFactory::BuildServiceInstanceFor(
94 content::BrowserContext* context) const { 96 content::BrowserContext* context) const {
95 return new BrowsingDataRemover(context); 97 BrowsingDataRemover* remover = new BrowsingDataRemover(context);
98 remover->set_embedder_delegate(
99 base::MakeUnique<ChromeBrowsingDataRemoverDelegate>(context));
100 return remover;
96 } 101 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698