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

Unified Diff: chrome/browser/metrics/thread_watcher.cc

Issue 1102333004: Disable ThreadWatcher in CANARY and UNKNOWN channels temporarily to measure its (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable ThreadWatcher in UNKNOWN channels Created 5 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/metrics/thread_watcher.cc
diff --git a/chrome/browser/metrics/thread_watcher.cc b/chrome/browser/metrics/thread_watcher.cc
index 27dc82511b812a8aba1a8eeee256932a98c611d3..45802aaf0628e98ad0866e5a90cef16f3576ca0e 100644
--- a/chrome/browser/metrics/thread_watcher.cc
+++ b/chrome/browser/metrics/thread_watcher.cc
@@ -536,6 +536,12 @@ void ThreadWatcherList::InitializeAndStartWatching(
if (g_thread_watcher_list_ || g_stopped_)
return;
+ // Disable ThreadWatcher in Canary channel.
+ chrome::VersionInfo::Channel channel = chrome::VersionInfo::GetChannel();
+ if (channel == chrome::VersionInfo::CHANNEL_CANARY ||
+ channel == chrome::VersionInfo::CHANNEL_UNKNOWN)
Alexei Svitkine (slow) 2015/04/28 16:38:38 Nit: {}'s
ramant (doing other things) 2015/04/28 17:06:35 Done.
+ return;
+
ThreadWatcherList* thread_watcher_list = new ThreadWatcherList();
CHECK(thread_watcher_list);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698