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

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

Issue 2333113002: Rename DesktopEngagement* to DesktopSessionDuration*. (Closed)
Patch Set: Change name Created 4 years, 3 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" 13 #include "chrome/browser/content_settings/chrome_content_settings_client.h"
14 #include "chrome/browser/content_settings/tab_specific_content_settings.h" 14 #include "chrome/browser/content_settings/tab_specific_content_settings.h"
15 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h" 15 #include "chrome/browser/data_use_measurement/chrome_data_use_ascriber_service_f actory.h"
16 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h" 16 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h"
17 #include "chrome/browser/engagement/site_engagement_helper.h" 17 #include "chrome/browser/engagement/site_engagement_helper.h"
18 #include "chrome/browser/engagement/site_engagement_service.h" 18 #include "chrome/browser/engagement/site_engagement_service.h"
19 #include "chrome/browser/external_protocol/external_protocol_observer.h" 19 #include "chrome/browser/external_protocol/external_protocol_observer.h"
20 #include "chrome/browser/favicon/favicon_utils.h" 20 #include "chrome/browser/favicon/favicon_utils.h"
21 #include "chrome/browser/history/history_tab_helper.h" 21 #include "chrome/browser/history/history_tab_helper.h"
22 #include "chrome/browser/history/top_sites_factory.h" 22 #include "chrome/browser/history/top_sites_factory.h"
23 #include "chrome/browser/infobars/infobar_service.h" 23 #include "chrome/browser/infobars/infobar_service.h"
24 #include "chrome/browser/metrics/desktop_engagement/desktop_engagement_observer. h" 24 #include "chrome/browser/metrics/desktop_session_duration/desktop_session_durati on_observer.h"
25 #include "chrome/browser/net/net_error_tab_helper.h" 25 #include "chrome/browser/net/net_error_tab_helper.h"
26 #include "chrome/browser/net/predictor_tab_helper.h" 26 #include "chrome/browser/net/predictor_tab_helper.h"
27 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h" 27 #include "chrome/browser/page_load_metrics/page_load_metrics_initialize.h"
28 #include "chrome/browser/password_manager/chrome_password_manager_client.h" 28 #include "chrome/browser/password_manager/chrome_password_manager_client.h"
29 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h" 29 #include "chrome/browser/predictors/resource_prefetch_predictor_factory.h"
30 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h" 30 #include "chrome/browser/predictors/resource_prefetch_predictor_tab_helper.h"
31 #include "chrome/browser/prerender/prerender_tab_helper.h" 31 #include "chrome/browser/prerender/prerender_tab_helper.h"
32 #include "chrome/browser/profiles/profile.h" 32 #include "chrome/browser/profiles/profile.h"
33 #include "chrome/browser/sessions/session_tab_helper.h" 33 #include "chrome/browser/sessions/session_tab_helper.h"
34 #include "chrome/browser/ssl/chrome_security_state_model_client.h" 34 #include "chrome/browser/ssl/chrome_security_state_model_client.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 TabDialogs::CreateForWebContents(web_contents); 231 TabDialogs::CreateForWebContents(web_contents);
232 ThumbnailTabHelper::CreateForWebContents(web_contents); 232 ThumbnailTabHelper::CreateForWebContents(web_contents);
233 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents); 233 web_modal::WebContentsModalDialogManager::CreateForWebContents(web_contents);
234 234
235 if (banners::AppBannerManagerDesktop::IsEnabled()) 235 if (banners::AppBannerManagerDesktop::IsEnabled())
236 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents); 236 banners::AppBannerManagerDesktop::CreateForWebContents(web_contents);
237 #endif 237 #endif
238 238
239 #if defined(OS_WIN) || defined(OS_MACOSX) || \ 239 #if defined(OS_WIN) || defined(OS_MACOSX) || \
240 (defined(OS_LINUX) && !defined(OS_CHROMEOS)) 240 (defined(OS_LINUX) && !defined(OS_CHROMEOS))
241 metrics::DesktopEngagementObserver::CreateForWebContents(web_contents); 241 metrics::DesktopSessionDurationObserver::CreateForWebContents(web_contents);
242 #endif 242 #endif
243 // --- Feature tab helpers behind flags --- 243 // --- Feature tab helpers behind flags ---
244 244
245 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION) 245 #if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
246 CaptivePortalTabHelper::CreateForWebContents(web_contents); 246 CaptivePortalTabHelper::CreateForWebContents(web_contents);
247 #endif 247 #endif
248 248
249 #if defined(ENABLE_EXTENSIONS) 249 #if defined(ENABLE_EXTENSIONS)
250 extensions::TabHelper::CreateForWebContents(web_contents); 250 extensions::TabHelper::CreateForWebContents(web_contents);
251 #endif 251 #endif
(...skipping 20 matching lines...) Expand all
272 272
273 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( 273 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile(
274 web_contents->GetBrowserContext())) { 274 web_contents->GetBrowserContext())) {
275 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( 275 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents(
276 web_contents); 276 web_contents);
277 } 277 }
278 278
279 if (tracing::NavigationTracingObserver::IsEnabled()) 279 if (tracing::NavigationTracingObserver::IsEnabled())
280 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); 280 tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
281 } 281 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698