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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 dom_distiller::WebContentsMainFrameObserver::CreateForWebContents( | 239 dom_distiller::WebContentsMainFrameObserver::CreateForWebContents( |
240 web_contents); | 240 web_contents); |
241 } | 241 } |
242 | 242 |
243 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( | 243 if (predictors::ResourcePrefetchPredictorFactory::GetForProfile( |
244 web_contents->GetBrowserContext())) { | 244 web_contents->GetBrowserContext())) { |
245 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( | 245 predictors::ResourcePrefetchPredictorTabHelper::CreateForWebContents( |
246 web_contents); | 246 web_contents); |
247 } | 247 } |
248 | 248 |
249 if (base::CommandLine::ForCurrentProcess()->HasSwitch( | 249 if (tracing::NavigationTracingObserver::IsEnabled()) |
250 switches::kEnableNavigationTracing) && | |
251 base::CommandLine::ForCurrentProcess()->HasSwitch( | |
252 switches::kTraceUploadURL)) { | |
253 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); | 250 tracing::NavigationTracingObserver::CreateForWebContents(web_contents); |
254 } | |
255 } | 251 } |
OLD | NEW |