OLD | NEW |
---|---|
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 "chrome/browser/browser_process.h" | 8 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/content_settings/chrome_content_settings_client.h" | 9 #include "chrome/browser/content_settings/chrome_content_settings_client.h" |
10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" | 10 #include "chrome/browser/content_settings/tab_specific_content_settings.h" |
(...skipping 23 matching lines...) Expand all Loading... | |
34 #include "chrome/browser/ui/navigation_correction_tab_observer.h" | 34 #include "chrome/browser/ui/navigation_correction_tab_observer.h" |
35 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 35 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
36 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" | 36 #include "chrome/browser/ui/pdf/chrome_pdf_web_contents_helper_client.h" |
37 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" | 37 #include "chrome/browser/ui/prefs/prefs_tab_helper.h" |
38 #include "chrome/browser/ui/search/search_tab_helper.h" | 38 #include "chrome/browser/ui/search/search_tab_helper.h" |
39 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 39 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
40 #include "chrome/browser/ui/tab_dialogs.h" | 40 #include "chrome/browser/ui/tab_dialogs.h" |
41 #include "chrome/common/chrome_switches.h" | 41 #include "chrome/common/chrome_switches.h" |
42 #include "components/autofill/content/browser/content_autofill_driver_factory.h" | 42 #include "components/autofill/content/browser/content_autofill_driver_factory.h" |
43 #include "components/autofill/core/browser/autofill_manager.h" | 43 #include "components/autofill/core/browser/autofill_manager.h" |
44 #include "components/dom_distiller/content/browser/distillability_driver.h" | |
mdjones
2015/09/29 17:31:42
Is this needed?
wychen
2015/09/29 21:46:57
Done.
| |
44 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" | 45 #include "components/dom_distiller/content/browser/web_contents_main_frame_obser ver.h" |
45 #include "components/dom_distiller/core/dom_distiller_switches.h" | 46 #include "components/dom_distiller/core/dom_distiller_switches.h" |
46 #include "components/history/content/browser/web_contents_top_sites_observer.h" | 47 #include "components/history/content/browser/web_contents_top_sites_observer.h" |
47 #include "components/history/core/browser/top_sites.h" | 48 #include "components/history/core/browser/top_sites.h" |
48 #include "components/page_load_metrics/browser/metrics_web_contents_observer.h" | 49 #include "components/page_load_metrics/browser/metrics_web_contents_observer.h" |
49 #include "components/password_manager/core/browser/password_manager.h" | 50 #include "components/password_manager/core/browser/password_manager.h" |
50 #include "components/tracing/tracing_switches.h" | 51 #include "components/tracing/tracing_switches.h" |
51 #include "content/public/browser/web_contents.h" | 52 #include "content/public/browser/web_contents.h" |
52 | 53 |
53 #if defined(OS_ANDROID) | 54 #if defined(OS_ANDROID) |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
247 web_contents); | 248 web_contents); |
248 } | 249 } |
249 | 250 |
250 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 251 if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
251 switches::kEnableNavigationTracing) && | 252 switches::kEnableNavigationTracing) && |
252 base::CommandLine::ForCurrentProcess()->HasSwitch( | 253 base::CommandLine::ForCurrentProcess()->HasSwitch( |
253 switches::kTraceUploadURL)) { | 254 switches::kTraceUploadURL)) { |
254 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 255 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
255 } | 256 } |
256 } | 257 } |
OLD | NEW |