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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 8429009: Enable tracking of objects by default (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chrome_browser_main.cc
===================================================================
--- chrome/browser/chrome_browser_main.cc (revision 108024)
+++ chrome/browser/chrome_browser_main.cc (working copy)
@@ -1223,6 +1223,14 @@
browser_process_.reset(new BrowserProcessImpl(parsed_command_line()));
}
+ if (parsed_command_line().HasSwitch(switches::kEnableTracking)) {
+ // User wants to override default tracking status.
+ std::string flag =
+ parsed_command_line().GetSwitchValueASCII(switches::kEnableTracking);
+ bool enabled = flag.compare("0") != 0;
+ tracked_objects::ThreadData::InitializeAndSetTrackingStatus(enabled);
+ }
+
// This forces the TabCloseableStateWatcher to be created and, on chromeos,
// register for the notifications it needs to track the closeable state of
// tabs.
« no previous file with comments | « chrome/browser/chrome_browser_main.h ('k') | chrome/common/chrome_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698