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

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

Issue 1975723002: Reduce the site engagement service public interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Push messaging now uses engagement Created 4 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 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 InfoBarService::CreateForWebContents(web_contents); 165 InfoBarService::CreateForWebContents(web_contents);
166 NavigationCorrectionTabObserver::CreateForWebContents(web_contents); 166 NavigationCorrectionTabObserver::CreateForWebContents(web_contents);
167 NavigationMetricsRecorder::CreateForWebContents(web_contents); 167 NavigationMetricsRecorder::CreateForWebContents(web_contents);
168 chrome::InitializePageLoadMetricsForWebContents(web_contents); 168 chrome::InitializePageLoadMetricsForWebContents(web_contents);
169 PopupBlockerTabHelper::CreateForWebContents(web_contents); 169 PopupBlockerTabHelper::CreateForWebContents(web_contents);
170 PrefsTabHelper::CreateForWebContents(web_contents); 170 PrefsTabHelper::CreateForWebContents(web_contents);
171 prerender::PrerenderTabHelper::CreateForWebContents(web_contents); 171 prerender::PrerenderTabHelper::CreateForWebContents(web_contents);
172 SearchTabHelper::CreateForWebContents(web_contents); 172 SearchTabHelper::CreateForWebContents(web_contents);
173 ChromeSecurityStateModelClient::CreateForWebContents(web_contents); 173 ChromeSecurityStateModelClient::CreateForWebContents(web_contents);
174 if (SiteEngagementService::IsEnabled()) 174 if (SiteEngagementService::IsEnabled())
175 SiteEngagementHelper::CreateForWebContents(web_contents); 175 SiteEngagementService::Helper::CreateForWebContents(web_contents);
176 // TODO(vabr): Remove TabSpecificContentSettings from here once their function 176 // TODO(vabr): Remove TabSpecificContentSettings from here once their function
177 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075 177 // is taken over by ChromeContentSettingsClient. http://crbug.com/387075
178 TabSpecificContentSettings::CreateForWebContents(web_contents); 178 TabSpecificContentSettings::CreateForWebContents(web_contents);
179 179
180 // --- Platform-specific tab helpers --- 180 // --- Platform-specific tab helpers ---
181 181
182 #if BUILDFLAG(ANDROID_JAVA_UI) 182 #if BUILDFLAG(ANDROID_JAVA_UI)
183 ContextMenuHelper::CreateForWebContents(web_contents); 183 ContextMenuHelper::CreateForWebContents(web_contents);
184 DataUseTabHelper::CreateForWebContents(web_contents); 184 DataUseTabHelper::CreateForWebContents(web_contents);
185 185
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 252
253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 253 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
254 web_contents->GetBrowserContext())) { 254 web_contents->GetBrowserContext())) {
255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 255 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
256 web_contents); 256 web_contents);
257 } 257 }
258 258
259 if (tracing::NavigationTracingObserver::IsEnabled()) 259 if (tracing::NavigationTracingObserver::IsEnabled())
260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 260 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
261 } 261 }
OLDNEW
« no previous file with comments | « chrome/browser/push_messaging/background_budget_service.cc ('k') | chrome/browser/ui/webui/engagement/site_engagement_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698