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

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

Issue 1426803004: Made the NavigationTracingObserver always be active whenever background tracing is active (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@random_triggers
Patch Set: Created 5 years, 1 month 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 "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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/tracing/navigation_tracing.cc ('k') | content/browser/tracing/background_tracing_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698