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

Unified 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, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index 08a6d4ed0305f42bd91b3d6484a804f761df6cdd..db5d5806737f5250284d5ac619e14cbf4950a8de 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -246,10 +246,6 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
web_contents);
}
- if (base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableNavigationTracing) &&
- base::CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kTraceUploadURL)) {
+ if (tracing::NavigationTracingObserver::IsEnabled())
tracing::NavigationTracingObserver::CreateForWebContents(web_contents);
- }
}
« 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