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

Unified Diff: chrome/browser/chrome_browser_main.cc

Issue 8414050: Pile of nits for tracked object enablement (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 | « base/tracked_objects.cc ('k') | no next file » | 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 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,
« no previous file with comments | « base/tracked_objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698