Index: chrome/browser/chrome_browser_main.cc |
=================================================================== |
--- chrome/browser/chrome_browser_main.cc (revision 107895) |
+++ chrome/browser/chrome_browser_main.cc (working copy) |
@@ -1218,10 +1218,11 @@ |
} |
if (parsed_command_line().HasSwitch(switches::kEnableTracking)) { |
+ // User wants to override default tracking status. |
std::string flag = |
parsed_command_line().GetSwitchValueASCII(switches::kEnableTracking); |
- if (flag.compare("0") == 0) |
- tracked_objects::ThreadData::InitializeAndSetTrackingStatus(false); |
+ bool enabled = flag.compare("0") != 0; |
+ tracked_objects::ThreadData::InitializeAndSetTrackingStatus(enabled); |
} |
// This forces the TabCloseableStateWatcher to be created and, on chromeos, |