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

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

Issue 2042243004: Construct the site engagement helper with a site engagement service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use committed not visible URL Created 4 years, 6 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/content_settings/chrome_content_settings_client.h" 10 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 HistoryTabHelper::CreateForWebContents(web_contents); 165 HistoryTabHelper::CreateForWebContents(web_contents);
166 InfoBarService::CreateForWebContents(web_contents); 166 InfoBarService::CreateForWebContents(web_contents);
167 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 167 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
168 NavigationMetricsRecorder::CreateForWebContents(web_contents); 168 NavigationMetricsRecorder::CreateForWebContents(web_contents);
169 chrome::InitializePageLoadMetricsForWebContents(web_contents); 169 chrome::InitializePageLoadMetricsForWebContents(web_contents);
170 PopupBlockerTabHelper::CreateForWebContents(web_contents); 170 PopupBlockerTabHelper::CreateForWebContents(web_contents);
171 PrefsTabHelper::CreateForWebContents(web_contents); 171 PrefsTabHelper::CreateForWebContents(web_contents);
172 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 172 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
173 SearchTabHelper::CreateForWebContents(web_contents); 173 SearchTabHelper::CreateForWebContents(web_contents);
174 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 174 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
175 if (SiteEngagementService::IsEnabled()) 175 if (SiteEngagementService::IsEnabled()) {
176 SiteEngagementService::Helper::CreateForWebContents(web_contents); 176 SiteEngagementService::Helper::CreateForWebContents(
177 web_contents, SiteEngagementService::Get(Profile::FromBrowserContext(
178 web_contents->GetBrowserContext())));
179 }
177 subresource_filter::ContentSubresourceFilterDriverFactory:: 180 subresource_filter::ContentSubresourceFilterDriverFactory::
178 CreateForWebContents(web_contents); 181 CreateForWebContents(web_contents);
179 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 182 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
180 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 183 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
181 TabSpecificContentSettings::CreateForWebContents(web_contents); 184 TabSpecificContentSettings::CreateForWebContents(web_contents);
182 185
183 // --- Platform-specific tab helpers --- 186 // --- Platform-specific tab helpers ---
184 187
185 #if BUILDFLAG(ANDROID_JAVA_UI) 188 #if BUILDFLAG(ANDROID_JAVA_UI)
186 ContextMenuHelper::CreateForWebContents(web_contents); 189 ContextMenuHelper::CreateForWebContents(web_contents);
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 258
256 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 259 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
257 web_contents->GetBrowserContext())) { 260 web_contents->GetBrowserContext())) {
258 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 261 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
259 web_contents); 262 web_contents);
260 } 263 }
261 264
262 if (tracing::NavigationTracingObserver::IsEnabled()) 265 if (tracing::NavigationTracingObserver::IsEnabled())
263 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 266 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
264 } 267 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698