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

Side by Side Diff: chrome/browser/ui/tab_helpers.cc

Issue 2375333003: Remove content_settings_client.h abstraction which isn't used (Closed)
Patch Set: Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/ui/tab_helpers.h" 5 #include "chrome/browser/ui/tab_helpers.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "build/build_config.h" 11 #include "build/build_config.h"
12 #include "chrome/browser/browser_process.h" 12 #include "chrome/browser/browser_process.h"
13 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 13 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
15 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h" 14 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h"
16 #include "chrome/browser/engagement/site_engagement_helper.h" 15 #include "chrome/browser/engagement/site_engagement_helper.h"
17 #include "chrome/browser/engagement/site_engagement_service.h" 16 #include "chrome/browser/engagement/site_engagement_service.h"
18 #include "chrome/browser/external_protocol/external_protocol_observer.h" 17 #include "chrome/browser/external_protocol/external_protocol_observer.h"
19 #include "chrome/browser/favicon/favicon_utils.h" 18 #include "chrome/browser/favicon/favicon_utils.h"
20 #include "chrome/browser/history/history_tab_helper.h" 19 #include "chrome/browser/history/history_tab_helper.h"
21 #include "chrome/browser/history/top_sites_factory.h" 20 #include "chrome/browser/history/top_sites_factory.h"
22 #include "chrome/browser/infobars/infobar_service.h" 21 #include "chrome/browser/infobars/infobar_service.h"
23 #include "chrome/browser/metrics/desktop_session_duration/desktop_session_durati on_observer.h" 22 #include "chrome/browser/metrics/desktop_session_duration/desktop_session_durati on_observer.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 // --- Common tab helpers --- 150 // --- Common tab helpers ---
152 151
153 autofill::ChromeAutofillClient::CreateForWebContents(web_contents); 152 autofill::ChromeAutofillClient::CreateForWebContents(web_contents);
154 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate( 153 autofill::ContentAutofillDriverFactory::CreateForWebContentsAndDelegate(
155 web_contents, 154 web_contents,
156 autofill::ChromeAutofillClient::FromWebContents(web_contents), 155 autofill::ChromeAutofillClient::FromWebContents(web_contents),
157 g_browser_process->GetApplicationLocale(), 156 g_browser_process->GetApplicationLocale(),
158 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER); 157 autofill::AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER);
159 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents); 158 chrome_browser_net::NetErrorTabHelper::CreateForWebContents(web_contents);
160 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents); 159 chrome_browser_net::PredictorTabHelper::CreateForWebContents(web_contents);
161 ChromeContentSettingsClient::CreateForWebContents(web_contents);
162 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient( 160 ChromePasswordManagerClient::CreateForWebContentsWithAutofillClient(
163 web_contents, 161 web_contents,
164 autofill::ChromeAutofillClient::FromWebContents(web_contents)); 162 autofill::ChromeAutofillClient::FromWebContents(web_contents));
165 ChromeTranslateClient::CreateForWebContents(web_contents); 163 ChromeTranslateClient::CreateForWebContents(web_contents);
166 CoreTabHelper::CreateForWebContents(web_contents); 164 CoreTabHelper::CreateForWebContents(web_contents);
167 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents( 165 data_use_measurement::DataUseWebContentsObserver::CreateForWebContents(
168 web_contents); 166 web_contents);
169 ExternalProtocolObserver::CreateForWebContents(web_contents); 167 ExternalProtocolObserver::CreateForWebContents(web_contents);
170 favicon::CreateContentFaviconDriverForWebContents(web_contents); 168 favicon::CreateContentFaviconDriverForWebContents(web_contents);
171 FindTabHelper::CreateForWebContents(web_contents); 169 FindTabHelper::CreateForWebContents(web_contents);
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 269
272 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 270 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
273 web_contents->GetBrowserContext())) { 271 web_contents->GetBrowserContext())) {
274 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 272 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
275 web_contents); 273 web_contents);
276 } 274 }
277 275
278 if (tracing::NavigationTracingObserver::IsEnabled()) 276 if (tracing::NavigationTracingObserver::IsEnabled())
279 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 277 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
280 } 278 }
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/chrome_content_settings_client.cc ('k') | components/content_settings/core/browser/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698