summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chrome_browser_main.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chrome_browser_main.cc')
-rw-r--r--chrome/browser/chrome_browser_main.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/chrome_browser_main.cc b/chrome/browser/chrome_browser_main.cc
index e74b7ba..2d9576f 100644
--- a/chrome/browser/chrome_browser_main.cc
+++ b/chrome/browser/chrome_browser_main.cc
@@ -1217,6 +1217,13 @@ int ChromeBrowserMainParts::PreMainMessageLoopRunImpl() {
browser_process_.reset(new BrowserProcessImpl(parsed_command_line()));
}
+ if (parsed_command_line().HasSwitch(switches::kEnableTracking)) {
+ std::string flag =
+ parsed_command_line().GetSwitchValueASCII(switches::kEnableTracking);
+ if (flag.compare("0") == 0)
+ tracked_objects::ThreadData::InitializeAndSetTrackingStatus(false);
+ }
+
// This forces the TabCloseableStateWatcher to be created and, on chromeos,
// register for the notifications it needs to track the closeable state of
// tabs.